mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
15 lines
265 B
Kotlin
Vendored
15 lines
265 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitNonConstValuesAsVarargsInAnnotations
|
|
|
|
annotation class AnnE(val i: MyEnum)
|
|
|
|
@AnnE(<!ANNOTATION_ARGUMENT_MUST_BE_ENUM_CONST!>e<!>)
|
|
class Test
|
|
|
|
val e: MyEnum = MyEnum.A
|
|
|
|
enum class MyEnum {
|
|
A
|
|
}
|
|
|
|
@AnnE(<!TYPE_MISMATCH!>Test()<!>)
|
|
class Test2 |