Files
kotlin-fork/compiler/testData/codegen/box/super/kt4982.kt
T
2015-04-07 13:08:51 +03:00

22 lines
350 B
Kotlin
Vendored

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;
}