data flow info for arg may affect next argument's type for type argument inference case

This commit is contained in:
Svetlana Isakova
2013-07-30 16:17:24 +04:00
parent 9ccd1e5ddd
commit 99bb6f13b5
3 changed files with 27 additions and 12 deletions
@@ -5122,6 +5122,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/smartCasts/inference"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("dependentOnPrevArg.kt")
public void testDependentOnPrevArg() throws Exception {
doTest("compiler/testData/diagnostics/tests/smartCasts/inference/dependentOnPrevArg.kt");
}
@TestMetadata("intersectionTypes.kt")
public void testIntersectionTypes() throws Exception {
doTest("compiler/testData/diagnostics/tests/smartCasts/inference/intersectionTypes.kt");