mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
13 lines
203 B
Kotlin
13 lines
203 B
Kotlin
annotation class AnnE(val i: MyEnum)
|
|
|
|
AnnE(<!ANNOTATION_PARAMETER_MUST_BE_ENUM_CONST!>e<!>)
|
|
class Test
|
|
|
|
val e: MyEnum = MyEnum.A
|
|
|
|
enum class MyEnum {
|
|
A
|
|
}
|
|
|
|
AnnE(<!TYPE_MISMATCH!>Test()<!>)
|
|
class Test2 |