mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Delay type resolution of variables for variables in named pattern
This commit is contained in:
@@ -5256,6 +5256,13 @@ void constraints::simplifyLocator(ASTNode &anchor,
|
||||
continue;
|
||||
}
|
||||
|
||||
case ConstraintLocator::NamedPatternDecl: {
|
||||
auto pattern = cast<NamedPattern>(anchor.get<Pattern *>());
|
||||
anchor = pattern->getDecl();
|
||||
path = path.slice(1);
|
||||
break;
|
||||
}
|
||||
|
||||
case ConstraintLocator::ImplicitConversion:
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user