Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt1249.kt
T
2019-11-19 11:00:09 +03:00

14 lines
242 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
//KT-1249 IllegalStateException invoking function property
class TestClass(val body : () -> Unit) : Any() {
fun run() {
body()
}
}
fun box() : String {
TestClass({}).run()
return "OK"
}