b551afb202
The caching variable has to have no initializers so that there is no dependence on evaluation order.
15 lines
143 B
Kotlin
Vendored
15 lines
143 B
Kotlin
Vendored
class A {
|
|
companion object
|
|
}
|
|
|
|
val foo: Any.() -> Unit = {}
|
|
|
|
fun test() {
|
|
A.(foo)()
|
|
}
|
|
|
|
fun box(): String {
|
|
test()
|
|
return "OK"
|
|
}
|