not to rewrite RESOLUTION_SCOPE for references
(different scope can appear because of cached info for calls)
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ public class ExpressionTypingVisitorDispatcher extends JetVisitor<JetType, Expre
|
|||||||
result = null;
|
result = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!context.trace.get(BindingContext.PROCESSED, expression)) {
|
if (!context.trace.get(BindingContext.PROCESSED, expression) && !(expression instanceof JetReferenceExpression)) {
|
||||||
context.trace.record(BindingContext.RESOLUTION_SCOPE, expression, context.scope);
|
context.trace.record(BindingContext.RESOLUTION_SCOPE, expression, context.scope);
|
||||||
}
|
}
|
||||||
context.trace.record(BindingContext.PROCESSED, expression);
|
context.trace.record(BindingContext.PROCESSED, expression);
|
||||||
|
|||||||
Reference in New Issue
Block a user