Skip to content

Commit ee2a8fc

Browse files
committed
[ConstraintSystem] Delay binding the type variable representing a wrapped
value type until the PropertyWrapper constraint has been solved.
1 parent 76c4c3d commit ee2a8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,6 @@ void PotentialBindings::infer(Constraint *constraint) {
12511251
case ConstraintKind::FunctionInput:
12521252
case ConstraintKind::FunctionResult:
12531253
case ConstraintKind::OpaqueUnderlyingType:
1254-
case ConstraintKind::PropertyWrapper:
12551254
// Constraints from which we can't do anything.
12561255
break;
12571256

@@ -1314,7 +1313,8 @@ void PotentialBindings::infer(Constraint *constraint) {
13141313

13151314
case ConstraintKind::ValueMember:
13161315
case ConstraintKind::UnresolvedValueMember:
1317-
case ConstraintKind::ValueWitness: {
1316+
case ConstraintKind::ValueWitness:
1317+
case ConstraintKind::PropertyWrapper: {
13181318
// If current type variable represents a member type of some reference,
13191319
// it would be bound once member is resolved either to a actual member
13201320
// type or to a hole if member couldn't be found.

0 commit comments

Comments
 (0)