Skip to content

Commit 48bbeaa

Browse files
committed
[ConstraintSystem] Fail closure resolution if one of the parameters has invalid property wrapper
(cherry picked from commit 0e4d16d)
1 parent 118631a commit 48bbeaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9903,8 +9903,9 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
99039903
}
99049904

99059905
if (!paramDecl->getName().hasDollarPrefix()) {
9906-
generateWrappedPropertyTypeConstraints(paramDecl, backingType,
9907-
param.getParameterType());
9906+
if (generateWrappedPropertyTypeConstraints(paramDecl, backingType,
9907+
param.getParameterType()))
9908+
return false;
99089909
}
99099910

99109911
auto result = applyPropertyWrapperToParameter(backingType, param.getParameterType(),

0 commit comments

Comments
 (0)