Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeEnumConst.kt
T
2020-12-16 19:52:30 +03:00

12 lines
245 B
Kotlin
Vendored

enum class TestEnum {
Foo
}
annotation class Ann(vararg val a: TestEnum)
val foo = TestEnum.Foo
var bar = TestEnum.Foo
@Ann(<!ANNOTATION_ARGUMENT_MUST_BE_ENUM_CONST!>foo<!>, <!ANNOTATION_ARGUMENT_MUST_BE_ENUM_CONST!>bar<!>)
fun test() {}