mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] Diagnose keypath subscript components with missing Hashable conformances
This commit is contained in:
@@ -399,7 +399,9 @@ AllowInaccessibleMember::create(ConstraintSystem &cs, ValueDecl *member,
|
||||
|
||||
bool TreatKeyPathSubscriptIndexAsHashable::diagnose(Expr *root,
|
||||
bool asNote) const {
|
||||
return false;
|
||||
KeyPathSubscriptIndexHashableFailure failure(root, getConstraintSystem(),
|
||||
NonConformingType, getLocator());
|
||||
return failure.diagnose(asNote);
|
||||
}
|
||||
|
||||
TreatKeyPathSubscriptIndexAsHashable *
|
||||
|
||||
Reference in New Issue
Block a user