Files
kotlin/compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt
2018-10-17 21:15:28 +03:00

12 lines
212 B
Kotlin
Vendored

// !LANGUAGE: +NestedClassesInAnnotations
// IGNORE_BACKEND: NATIVE
annotation class Foo(val kind: Kind) {
enum class Kind { FAIL, OK }
}
@Foo(Foo.Kind.OK)
fun box(): String {
return Foo.Kind.OK.name
}