Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt4228.kt
T
Anton Bannykh b551afb202 JS IR: minor fix for callable ref translation
The caching variable has to have no initializers so that there is no
dependence on evaluation order.
2018-06-18 13:15:19 +03:00

15 lines
143 B
Kotlin
Vendored

class A {
companion object
}
val foo: Any.() -> Unit = {}
fun test() {
A.(foo)()
}
fun box(): String {
test()
return "OK"
}