JVM IR: record FIELD_FOR_PROPERTY for property delegates

Delegated properties now have their $delegate fields recorded in the
metadata (in `ClassCodegen.generateField`). This part of metadata is
used by `KPropertyN.getDelegate` functions, so almost all tests on
getDelegate are now unmuted
This commit is contained in:
Alexander Udalov
2019-03-28 14:16:04 +01:00
parent 5aae832c5f
commit 6cc293a0c5
15 changed files with 12 additions and 27 deletions
@@ -16585,11 +16585,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testAllFilesPresentInGetDelegate() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
}
@TestMetadata("noSetAccessibleTrue.kt")
public void testNoSetAccessibleTrue() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/noSetAccessibleTrue.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties/jvmField")
@@ -17730,11 +17730,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testAllFilesPresentInGetDelegate() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
}
@TestMetadata("noSetAccessibleTrue.kt")
public void testNoSetAccessibleTrue() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/noSetAccessibleTrue.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties/jvmField")