Skip to content

Commit a28776e

Browse files
committed
[Sema] applyPropertyWrapperToParameter fails when wrapper is not applied
1 parent f1c6c1b commit a28776e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/CSGen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4785,6 +4785,8 @@ ConstraintSystem::applyPropertyWrapperToParameter(
47854785
setType(param->getPropertyWrapperWrappedValueVar(), wrappedValueType);
47864786

47874787
appliedPropertyWrappers[anchor].push_back({ wrapperType, PropertyWrapperInitKind::WrappedValue });
4788+
} else {
4789+
return getTypeMatchFailure(locator);
47884790
}
47894791

47904792
return getTypeMatchSuccess();

0 commit comments

Comments
 (0)