We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c998f commit 08e417cCopy full SHA for 08e417c
lib/Sema/CSGen.cpp
@@ -3733,11 +3733,9 @@ static bool generateInitPatternConstraints(
3733
return cs.generateWrappedPropertyTypeConstraints(
3734
wrappedVar, cs.getType(target.getAsExpr()), patternType);
3735
3736
- if (!patternType->is<OpaqueTypeArchetypeType>()) {
3737
- // Add a conversion constraint between the types.
3738
- cs.addConstraint(ConstraintKind::Conversion, cs.getType(target.getAsExpr()),
3739
- patternType, locator, /*isFavored*/true);
3740
- }
+ // Add a conversion constraint between the types.
+ cs.addConstraint(ConstraintKind::Conversion, cs.getType(target.getAsExpr()),
+ patternType, locator, /*isFavored*/true);
3741
3742
return false;
3743
}
0 commit comments