blob: 8c01d8f221235e24b1f00d8815cf5bee9fd32a8f [file] [log] [blame]
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;
}