mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Property Wrappers] Add new contextual type purposes for property wrappers
to produce better diagnostics when there's a 'wrappedValue' type mismatch.
This commit is contained in:
@@ -4752,6 +4752,8 @@ bool SolutionApplicationTarget::contextualTypeIsOnlyAHint() const {
|
||||
case CTP_AssignSource:
|
||||
case CTP_SubscriptAssignSource:
|
||||
case CTP_Condition:
|
||||
case CTP_WrappedProperty:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_CannotFail:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user