[Sema] Improving global actor function mismatch diagnostic

This commit is contained in:
Luciano Almeida
2022-12-31 14:10:54 -03:00
parent cc70677303
commit e513d23c0b
10 changed files with 233 additions and 8 deletions

View File

@@ -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>();