Partial body resolve: more precise smart casts analysis for if-statement

This commit is contained in:
Valentin Kipyatkov
2014-11-18 14:29:01 +03:00
parent a675b5ba38
commit 5283b92269
6 changed files with 77 additions and 14 deletions
@@ -19,7 +19,6 @@ package org.jetbrains.jet.resolve;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -54,6 +53,18 @@ public class PartialBodyResolveTestGenerated extends AbstractPartialBodyResolveT
doTest(fileName);
}
@TestMetadata("IfBranchesAutoCasts.kt")
public void testIfBranchesAutoCasts() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/IfBranchesAutoCasts.kt");
doTest(fileName);
}
@TestMetadata("IfBranchesAutoCasts2.kt")
public void testIfBranchesAutoCasts2() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/IfBranchesAutoCasts2.kt");
doTest(fileName);
}
@TestMetadata("IfBranchesSmartCast.kt")
public void testIfBranchesSmartCast() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/IfBranchesSmartCast.kt");