Support enums as annotation arguments in deserialized Kotlin descriptors
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
import java.lang.annotation.ElementType
|
||||
|
||||
annotation class Anno(t: ElementType)
|
||||
|
||||
Anno(ElementType.METHOD) class Class {
|
||||
Anno(ElementType.PARAMETER) inner class Inner
|
||||
|
||||
Anno(ElementType.TYPE) class Nested
|
||||
|
||||
Anno(ElementType.ANNOTATION_TYPE) class object
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
internal final annotation class Anno : jet.Annotation {
|
||||
/*primary*/ public constructor Anno(/*0*/ t: java.lang.annotation.ElementType)
|
||||
}
|
||||
|
||||
test.Anno(t = ElementType.METHOD: java.lang.annotation.ElementType) internal final class Class {
|
||||
/*primary*/ public constructor Class()
|
||||
|
||||
test.Anno(t = ElementType.ANNOTATION_TYPE: java.lang.annotation.ElementType) internal class object <class-object-for-Class> {
|
||||
/*primary*/ private constructor <class-object-for-Class>()
|
||||
}
|
||||
|
||||
test.Anno(t = ElementType.PARAMETER: java.lang.annotation.ElementType) internal final inner class Inner {
|
||||
/*primary*/ public constructor Inner()
|
||||
}
|
||||
|
||||
test.Anno(t = ElementType.TYPE: java.lang.annotation.ElementType) internal final class Nested {
|
||||
/*primary*/ public constructor Nested()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
import java.lang.annotation.*
|
||||
|
||||
Retention(RetentionPolicy.RUNTIME) annotation class Anno
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
java.lang.annotation.Retention(value = RetentionPolicy.RUNTIME: java.lang.annotation.RetentionPolicy) internal final annotation class Anno : jet.Annotation {
|
||||
/*primary*/ public constructor Anno()
|
||||
}
|
||||
Reference in New Issue
Block a user