mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
13 lines
205 B
Kotlin
Vendored
13 lines
205 B
Kotlin
Vendored
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 |