mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Add a new reason for invalid member reference
This new reason indicates that result type of a static member doesn't conform to a specific protocol so it can't be referenced on a protocol metatype.
This commit is contained in:
@@ -1460,7 +1460,11 @@ struct MemberLookupResult {
|
||||
UR_ReferenceWritableKeyPathOnMutatingMember,
|
||||
|
||||
/// This is a KeyPath whose root type is AnyObject
|
||||
UR_KeyPathWithAnyObjectRootType
|
||||
UR_KeyPathWithAnyObjectRootType,
|
||||
|
||||
/// This is a static member being access through a protocol metatype
|
||||
/// but its result type doesn't conform to this protocol.
|
||||
UR_InvalidStaticMemberOnProtocolMetatype,
|
||||
};
|
||||
|
||||
/// This is a list of considered (but rejected) candidates, along with a
|
||||
|
||||
Reference in New Issue
Block a user