Skip to content

Commit 0e4d16d

Browse files
committed
[ConstraintSystem] Fail closure resolution if one of the parameters has invalid property wrapper
1 parent b0f7aef commit 0e4d16d

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
@@ -9914,8 +9914,9 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
99149914
}
99159915

99169916
if (!paramDecl->getName().hasDollarPrefix()) {
9917-
generateWrappedPropertyTypeConstraints(paramDecl, backingType,
9918-
param.getParameterType());
9917+
if (generateWrappedPropertyTypeConstraints(paramDecl, backingType,
9918+
param.getParameterType()))
9919+
return false;
99199920
}
99209921

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

0 commit comments

Comments
 (0)