Skip to content

Commit 815ecad

Browse files
committed
[Property Wrappers] Don't continue on to synthesizing and type checking a
property wrapper backing init if the property type doesn't match the wrapped value type.
1 parent 4764564 commit 815ecad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckStorage.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,6 +2389,7 @@ PropertyWrapperBackingPropertyInfoRequest::evaluate(Evaluator &evaluator,
23892389
nominalWrapper->diagnose(diag::property_wrapper_declared_here,
23902390
nominalWrapper->getFullName());
23912391
}
2392+
return PropertyWrapperBackingPropertyInfo();
23922393
}
23932394
}
23942395

0 commit comments

Comments
 (0)