JVM IR: Mark annotation implementation classes as anonymous
And add tests to ensure that annotation implementation classes are handled correctly in jvm-abi-gen.
This commit is contained in:
committed by
Alexander Udalov
parent
19660f11a7
commit
6d518c8e57
+1
@@ -0,0 +1 @@
|
||||
// LANGUAGE_VERSION: 1.6
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
@java.lang.annotation.Retention(value=RUNTIME)
|
||||
@kotlin.Metadata
|
||||
public annotation class test/A {
|
||||
// source: 'test.kt'
|
||||
}
|
||||
@kotlin.Metadata
|
||||
public final class test/Test {
|
||||
// source: 'test.kt'
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method anonymousAnnotationInstantiation(): test.A
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
annotation class A
|
||||
|
||||
class Test {
|
||||
fun anonymousAnnotationInstantiation() = A()
|
||||
}
|
||||
Reference in New Issue
Block a user