66e19b13ce
This is possible when a lambda's contract guarantees initialization of a variable.
11 lines
114 B
Kotlin
Vendored
11 lines
114 B
Kotlin
Vendored
fun box(): String {
|
|
val x: String
|
|
x = "OK"
|
|
{
|
|
val y = x
|
|
}()
|
|
return x
|
|
}
|
|
|
|
// 0 ObjectRef
|