Retain data flow info after when-expressions

This means the subject expression and the common data flow info of all entries'
conditions
This commit is contained in:
Alexander Udalov
2012-11-14 14:47:45 +04:00
parent d0a2ba5737
commit ac7ee9d3f5
8 changed files with 86 additions and 14 deletions
@@ -1316,6 +1316,21 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/When.kt");
}
@TestMetadata("WhenEntry.kt")
public void testWhenEntry() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenEntry.kt");
}
@TestMetadata("WhenIn.kt")
public void testWhenIn() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenIn.kt");
}
@TestMetadata("WhenSubject.kt")
public void testWhenSubject() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenSubject.kt");
}
@TestMetadata("While.kt")
public void testWhile() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/While.kt");