Files
kotlin-fork/compiler/testData/codegen/box/enum/kt20651a.kt
T
Roman Artemev 8a871b3f0c Update tests
2018-08-31 15:34:18 +03:00

9 lines
162 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
enum class Foo(
val x: String,
val callback: () -> String
) {
FOO("OK", { FOO.x })
}
fun box() = Foo.FOO.callback()