[K/N] Fix for instantiating annotations from already lowered file

If annotation class is already lowered, it can have more than one
constructor. So we should use primary one, not any one.

^KT-53475
This commit is contained in:
Pavel Kunyavskiy
2022-08-08 12:00:09 +02:00
committed by Space
parent c6cbab43f7
commit 3424e756ad
10 changed files with 104 additions and 1 deletions
@@ -120,6 +120,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefault.kt");
}
@Test
@TestMetadata("annotationInstancesEmptyDefaultLowered.kt")
public void testAnnotationInstancesEmptyDefaultLowered() throws Exception {
runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefaultLowered.kt");
}
@Test
@TestMetadata("annotationToString.kt")
public void testAnnotationToString() throws Exception {