blob: f5cd98d49c4ce6113669ade8e29ba0a7c0ac1988 [file] [log] [blame]
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()
}