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

19 lines
249 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
class MyClass(var fnc : () -> String) {
fun test(): String {
return fnc()
}
}
fun printtest() : String {
return "OK"
}
fun box(): String {
var c = MyClass({ printtest() })
return c.test()
}