Retain data flow info after conditions in if-statements

This commit is contained in:
Alexander Udalov
2012-11-13 16:52:26 +04:00
parent 2872a0799a
commit ae77bf0a4e
3 changed files with 44 additions and 5 deletions
@@ -1231,6 +1231,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/FunctionLiteral.kt");
}
@TestMetadata("IfStatement.kt")
public void testIfStatement() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/IfStatement.kt");
}
@TestMetadata("IfThenElse.kt")
public void testIfThenElse() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/IfThenElse.kt");