Skip to content

Commit fed7c69

Browse files
committed
[ConstraintSystem] Implement simplication of ClosureBodyElement element
1 parent 696c8f1 commit fed7c69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4857,6 +4857,13 @@ void constraints::simplifyLocator(ASTNode &anchor,
48574857
continue;
48584858
}
48594859

4860+
case ConstraintLocator::ClosureBodyElement: {
4861+
auto bodyElt = path[0].castTo<LocatorPathElt::ClosureBodyElement>();
4862+
anchor = bodyElt.getElement();
4863+
path = path.slice(1);
4864+
continue;
4865+
}
4866+
48604867
case ConstraintLocator::PatternMatch: {
48614868
auto patternElt = path[0].castTo<LocatorPathElt::PatternMatch>();
48624869
anchor = patternElt.getPattern();

0 commit comments

Comments
 (0)