Fix incorrect optimization in ExpressionTypingServices
Previously, it's been working because was almost always a different instance. After, the latter change with avoidance of storing trivial info there, newDataFlowInfo may accidentally become empty as context.dataFlowInfo. But we, obviously, should compare it with newContext.dataFlowInfo instead
This commit is contained in:
+1
-1
@@ -297,7 +297,7 @@ public class ExpressionTypingServices {
|
||||
beforeJumpInfo = result.getJumpFlowInfo();
|
||||
jumpOutPossible = result.getJumpOutPossible();
|
||||
}
|
||||
if (newDataFlowInfo != context.dataFlowInfo) {
|
||||
if (newDataFlowInfo != newContext.dataFlowInfo) {
|
||||
newContext = newContext.replaceDataFlowInfo(newDataFlowInfo);
|
||||
// We take current data flow info if jump there is not possible
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user