Files
kotlin/compiler/testData/codegen/box/functions/localFunctions/localFunctionInConstructor.kt
2019-11-19 11:00:09 +03:00

17 lines
250 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Test {
val property:Int
init {
fun local():Int {
return 10;
}
property = local();
}
}
fun box(): String {
return if (Test().property == 10) "OK" else "fail"
}