JVM_IR: add local delegated property metadata to non-synthetic classes

Otherwise kotlin-reflect won't find it (and it won't even be serialized
anyway).

 #KT-42562 Fixed
This commit is contained in:
pyos
2020-10-09 09:37:35 +02:00
committed by Alexander Udalov
parent 2974004de4
commit 1663619606
7 changed files with 103 additions and 20 deletions
@@ -27390,6 +27390,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class LocalDelegated extends AbstractLightAnalysisModeTest {
@TestMetadata("inLambdaInInline.kt")
public void ignoreInLambdaInInline() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambdaInInline.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -27403,6 +27408,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/defaultImpls.kt");
}
@TestMetadata("inLambda.kt")
public void testInLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambda.kt");
}
@TestMetadata("inlineFun.kt")
public void testInlineFun() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inlineFun.kt");