Files
kotlin-fork/compiler/testData/codegen/box/closures/localFunctionInInitializer.kt
T
2018-06-28 12:26:41 +02:00

13 lines
176 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun box(): String {
fun local():Int {
return 10;
}
class A {
val test = local()
}
return if (A().test == 10) "OK" else "fail"
}