mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #39146 from hborla/wrapped-param-diagnostics
[ConstraintSystem] Fix a misleading argument mismatch error when using wrapped parameters.
This commit is contained in:
@@ -8920,6 +8920,11 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
|
||||
setType(projection, computeProjectedValueType(paramDecl, backingType));
|
||||
}
|
||||
|
||||
if (!paramDecl->getName().hasDollarPrefix()) {
|
||||
generateWrappedPropertyTypeConstraints(paramDecl, backingType,
|
||||
param.getParameterType());
|
||||
}
|
||||
|
||||
auto result = applyPropertyWrapperToParameter(backingType, param.getParameterType(),
|
||||
paramDecl, paramDecl->getName(),
|
||||
ConstraintKind::Equal,
|
||||
|
||||
Reference in New Issue
Block a user