Support enums as annotation arguments in deserialized Kotlin descriptors

This commit is contained in:
Alexander Udalov
2013-08-28 18:15:38 +04:00
parent de062274e9
commit d84ab4423f
11 changed files with 153 additions and 8 deletions
@@ -0,0 +1,9 @@
package test
import java.lang.annotation.ElementType
annotation class Anno(t: ElementType)
Anno(ElementType.METHOD) fun foo() {}
Anno(ElementType.FIELD) val bar = 42
@@ -0,0 +1,9 @@
package test
test.Anno(t = ElementType.FIELD: java.lang.annotation.ElementType) internal val bar: jet.Int
internal fun <get-bar>(): jet.Int
test.Anno(t = ElementType.METHOD: java.lang.annotation.ElementType) internal fun foo(): jet.Unit
internal final annotation class Anno : jet.Annotation {
/*primary*/ public constructor Anno(/*0*/ t: java.lang.annotation.ElementType)
}