b551afb202
The caching variable has to have no initializers so that there is no dependence on evaluation order.
12 lines
191 B
Kotlin
Vendored
12 lines
191 B
Kotlin
Vendored
// EXPECTED_REACHABLE_NODES: 1111
|
|
package foo
|
|
|
|
fun lold() = true
|
|
|
|
val p = { { lold() }() }
|
|
|
|
fun box(): String {
|
|
if (!p()) return "fail1"
|
|
if (!foo.p()) return "fail2"
|
|
return "OK"
|
|
} |