[NI] Select variable with proper non-trivial constraint first

This commit is contained in:
Dmitry Petrov
2017-06-26 12:50:02 +03:00
committed by Mikhail Zarechenskiy
parent 0bf81aeec0
commit c0d6eff97c
6 changed files with 149 additions and 12 deletions
@@ -1090,6 +1090,27 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt");
doTest(fileName);
}
@TestMetadata("compiler/testData/ir/irText/regressions/newInference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NewInference extends AbstractIrTextTestCase {
public void testAllFilesPresentInNewInference() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/regressions/newInference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("fixationOrder1.kt")
public void testFixationOrder1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/newInference/fixationOrder1.kt");
doTest(fileName);
}
@TestMetadata("fixationOrder2.kt")
public void testFixationOrder2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/newInference/fixationOrder2.kt");
doTest(fileName);
}
}
}
@TestMetadata("compiler/testData/ir/irText/singletons")