mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Diagnose method arg captures that are not Hashable/Equatable.
This commit is contained in:
@@ -1707,8 +1707,9 @@ public:
|
||||
KeyPathSubscriptIndexHashableFailure(const Solution &solution, Type type,
|
||||
ConstraintLocator *locator)
|
||||
: FailureDiagnostic(solution, locator), NonConformingType(type) {
|
||||
assert(locator->isResultOfKeyPathDynamicMemberLookup() ||
|
||||
locator->isKeyPathSubscriptComponent());
|
||||
assert((locator->isResultOfKeyPathDynamicMemberLookup() ||
|
||||
locator->isKeyPathSubscriptComponent()) ||
|
||||
locator->isKeyPathMemberComponent());
|
||||
}
|
||||
|
||||
SourceLoc getLoc() const override;
|
||||
|
||||
Reference in New Issue
Block a user