1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
18 lines
223 B
Kotlin
18 lines
223 B
Kotlin
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()
|
|
}
|