Solution for KT-7838: now data flow information at the end of when expression is determined correctly.

#KT-7838  Fixed.
This commit is contained in:
Mikhail Glukhikh
2015-05-26 17:37:53 +03:00
parent 9e69b74a15
commit 4fb331ecd3
10 changed files with 142 additions and 0 deletions
@@ -13548,6 +13548,30 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("BranchBypassVal.kt")
public void testBranchBypassVal() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/BranchBypassVal.kt");
doTest(fileName);
}
@TestMetadata("BranchBypassVar.kt")
public void testBranchBypassVar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/BranchBypassVar.kt");
doTest(fileName);
}
@TestMetadata("BranchFalseBypass.kt")
public void testBranchFalseBypass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/BranchFalseBypass.kt");
doTest(fileName);
}
@TestMetadata("BranchFalseBypassElse.kt")
public void testBranchFalseBypassElse() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/BranchFalseBypassElse.kt");
doTest(fileName);
}
@TestMetadata("ElseOnNullableEnum.kt")
public void testElseOnNullableEnum() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/ElseOnNullableEnum.kt");