Files
kotlin/compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt
Mikhail Glukhikh a4c7619c89 [FIR2IR] Introduce & use FirBuiltInsPackageFragment
Without this commit, JVM name mapping logic in BE does not work for FIR,
because FIR cannot use old BuiltInsPackageFragmentImpl descriptor.
In this commit we add our own implementation thus fixing
a pack of FIR black box tests.
2020-03-24 10:37:53 +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
}