Files
kotlin-fork/compiler/testData/codegen/box/super/kt4982.kt
T
2014-05-16 13:33:39 +04:00

21 lines
342 B
Kotlin

abstract class WaitFor {
{
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;
}