JVM_IR: correct RetentionPolicy annotation generation

This commit is contained in:
Georgy Bronnikov
2019-05-29 16:19:07 +03:00
parent 4f6d0ca1d1
commit d7dacef9af
6 changed files with 86 additions and 11 deletions
@@ -0,0 +1,4 @@
package test;
@Runtime @Source
class Test {}
@@ -0,0 +1,7 @@
package test
@Retention(AnnotationRetention.RUNTIME)
annotation class Runtime
@Retention(AnnotationRetention.SOURCE)
annotation class Source
@@ -0,0 +1,13 @@
package test
@kotlin.annotation.Retention(value = AnnotationRetention.RUNTIME) public final annotation class Runtime : kotlin.Annotation {
public constructor Runtime()
}
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE) public final annotation class Source : kotlin.Annotation {
public constructor Source()
}
@test.Runtime public/*package*/ open class Test {
public/*package*/ constructor Test()
}