1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
22 lines
347 B
Kotlin
22 lines
347 B
Kotlin
abstract class WaitFor {
|
|
init {
|
|
condition()
|
|
}
|
|
|
|
abstract fun condition() : Boolean;
|
|
}
|
|
|
|
fun box(): String {
|
|
val local = ""
|
|
var result = "fail"
|
|
val s = object: WaitFor() {
|
|
|
|
override fun condition(): Boolean {
|
|
result = "OK"
|
|
return result.length== 2
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|