Record resolved delegation call for primary ctor if single result

Do the same thing as for secondary constructor (looks like it was a
workaround for R&I bug that was used only for secondary constructors
for some reason).

 #KT-17464 Fixed Target versions 1.1.5
This commit is contained in:
Dmitry Petrov
2017-07-24 11:07:52 +03:00
parent c9ad290ad5
commit b81ca31aae
7 changed files with 99 additions and 1 deletions
@@ -18247,6 +18247,27 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/super/unqualifiedSuperWithMethodsOfAny.kt");
doTest(fileName);
}
@TestMetadata("compiler/testData/codegen/box/super/superConstructor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuperConstructor extends AbstractBlackBoxCodegenTest {
public void testAllFilesPresentInSuperConstructor() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("kt17464_arrayOf.kt")
public void testKt17464_arrayOf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt");
doTest(fileName);
}
@TestMetadata("kt17464_linkedMapOf.kt")
public void testKt17464_linkedMapOf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt");
doTest(fileName);
}
}
}
@TestMetadata("compiler/testData/codegen/box/synchronized")