Files
kotlin-fork/compiler/testData/loadJava/compiledKotlin/annotations/EnumArgumentWithCustomToString.txt
T
Mikhail Glukhikh 1eac4d67de "annotation" is now parsed as an identifier. It is no longer a soft keyword.
Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped.
A set of annotations and their options tests.
A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files).
STUB_VERSION increased. Some quick fixes slightly changed.
2015-07-14 16:24:55 +03:00

37 lines
1.7 KiB
Plaintext
Vendored

package test
internal final enum class E : kotlin.Enum<test.E> {
public enum entry CAKE : test.E {
/*primary*/ private constructor CAKE()
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.E): kotlin.Int
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
}
/*primary*/ private constructor E()
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.E): kotlin.Int
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
// Static members
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.E
public final /*synthesized*/ fun values(): kotlin.Array<test.E>
}
kotlin.annotation.annotation() internal final annotation class EnumAnno : kotlin.Annotation {
/*primary*/ public constructor EnumAnno(/*0*/ value: test.E)
internal final val value: test.E
internal final fun <get-value>(): test.E
}
public final class EnumArgumentWithCustomToString {
/*primary*/ public constructor EnumArgumentWithCustomToString()
test.EnumAnno(value = E.CAKE) test.EnumArrayAnno(value = {E.CAKE, E.CAKE}) internal final fun annotated(): kotlin.Unit
}
kotlin.annotation.annotation() internal final annotation class EnumArrayAnno : kotlin.Annotation {
/*primary*/ public constructor EnumArrayAnno(/*0*/ vararg value: test.E /*kotlin.Array<out test.E>*/)
internal final val value: kotlin.Array<out test.E>
internal final fun <get-value>(): kotlin.Array<out test.E>
}