mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Improving global actor function mismatch diagnostic
This commit is contained in:
@@ -5263,10 +5263,12 @@ void constraints::simplifyLocator(ASTNode &anchor,
|
||||
}
|
||||
break;
|
||||
|
||||
case ConstraintLocator::ContextualType:
|
||||
case ConstraintLocator::GlobalActorType:
|
||||
case ConstraintLocator::ContextualType: {
|
||||
// This was just for identifying purposes, strip it off.
|
||||
path = path.slice(1);
|
||||
continue;
|
||||
}
|
||||
|
||||
case ConstraintLocator::KeyPathComponent: {
|
||||
auto elt = path[0].castTo<LocatorPathElt::KeyPathComponent>();
|
||||
|
||||
Reference in New Issue
Block a user