Add language feature for changed name of property annotations method

#KT-31352 Fixed
This commit is contained in:
Alexander Udalov
2019-05-28 16:39:53 +02:00
parent ea0142da60
commit 01ddac58e1
32 changed files with 83 additions and 50 deletions
@@ -37,7 +37,7 @@ public class SyntheticMethodForAnnotatedPropertyGenTest extends CodegenTestCase
return "properties/syntheticMethod";
}
private static final String TEST_SYNTHETIC_METHOD_NAME = JvmAbi.getSyntheticMethodNameForAnnotatedProperty("getProperty");
private static final String TEST_SYNTHETIC_METHOD_NAME = JvmAbi.getSyntheticMethodNameForAnnotatedProperty("property");
public void testInClass() {
loadFile();
@@ -1160,6 +1160,11 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
public void testPublicProperty() throws Exception {
runTest("compiler/testData/writeFlags/property/syntheticAnnotationsMethod/publicProperty.kt");
}
@TestMetadata("withGetterJvmName.kt")
public void testWithGetterJvmName() throws Exception {
runTest("compiler/testData/writeFlags/property/syntheticAnnotationsMethod/withGetterJvmName.kt");
}
}
@TestMetadata("compiler/testData/writeFlags/property/visibility")
@@ -1160,6 +1160,11 @@ public class IrWriteFlagsTestGenerated extends AbstractIrWriteFlagsTest {
public void testPublicProperty() throws Exception {
runTest("compiler/testData/writeFlags/property/syntheticAnnotationsMethod/publicProperty.kt");
}
@TestMetadata("withGetterJvmName.kt")
public void testWithGetterJvmName() throws Exception {
runTest("compiler/testData/writeFlags/property/syntheticAnnotationsMethod/withGetterJvmName.kt");
}
}
@TestMetadata("compiler/testData/writeFlags/property/visibility")