Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt1249.kt
T
2018-06-28 12:26:41 +02:00

14 lines
238 B
Kotlin
Vendored

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