Files
kotlin-fork/compiler/testData/codegen/box/super/kt4982.kt
T
2018-06-28 12:26:41 +02:00

24 lines
398 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
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;
}