keep DataFlowInfo if resulting type of an expression is DeferredType
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ public class ExpressionTypingVisitorDispatcher extends JetVisitor<JetTypeInfo, E
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result.getType() instanceof DeferredType) {
|
if (result.getType() instanceof DeferredType) {
|
||||||
result = JetTypeInfo.create(((DeferredType) result.getType()).getActualType(), context.dataFlowInfo);
|
result = JetTypeInfo.create(((DeferredType) result.getType()).getActualType(), result.getDataFlowInfo());
|
||||||
}
|
}
|
||||||
if (result.getType() != null) {
|
if (result.getType() != null) {
|
||||||
context.trace.record(BindingContext.EXPRESSION_TYPE, expression, result.getType());
|
context.trace.record(BindingContext.EXPRESSION_TYPE, expression, result.getType());
|
||||||
|
|||||||
Reference in New Issue
Block a user