mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
17 lines
250 B
Kotlin
Vendored
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"
|
|
}
|