Generate synthetic method for @JvmDefault properties in DefaultImpls

This commit is contained in:
Mikhael Bogdanov
2018-05-28 11:38:25 +02:00
parent 5455b6c0c0
commit a0060dd25b
8 changed files with 124 additions and 6 deletions
@@ -81,6 +81,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
runTest("compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
}
@TestMetadata("superCallFromInterface2.kt")
public void testSuperCallFromInterface2() throws Exception {
runTest("compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
}
@TestMetadata("superPropAccess.kt")
public void testSuperPropAccess() throws Exception {
runTest("compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
@@ -90,6 +95,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
public void testSuperPropAccessFromInterface() throws Exception {
runTest("compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
}
@TestMetadata("superPropAccessFromInterface2.kt")
public void testSuperPropAccessFromInterface2() throws Exception {
runTest("compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
}
}
}
@@ -61,6 +61,11 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
runTest("compiler/testData/codegen/java8/writeFlags/defaults/defaultProperty.kt");
}
@TestMetadata("propertyAnnotation.kt")
public void testPropertyAnnotation() throws Exception {
runTest("compiler/testData/codegen/java8/writeFlags/defaults/propertyAnnotation.kt");
}
@TestMetadata("compiler/testData/codegen/java8/writeFlags/defaults/compatibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -77,6 +82,11 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
public void testPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/java8/writeFlags/defaults/compatibility/propertyAccessors.kt");
}
@TestMetadata("propertyAnnotation.kt")
public void testPropertyAnnotation() throws Exception {
runTest("compiler/testData/codegen/java8/writeFlags/defaults/compatibility/propertyAnnotation.kt");
}
}
}
}