Files
kotlin-fork/compiler/testData/codegen/box/fakeOverride/fakeOverrideInAnonymousObject.kt
T
Dmitriy Novozhilov 6e2402620f [FIR] Fix collecting member candidates on receiver with smartcast
^KT-51460 Fixed
^KT-51827
2022-04-07 12:18:48 +00:00

27 lines
382 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
interface JPanel {
val result: String
}
open class ActivePanel : JPanel {
override var result: String = ""
fun fire(event: String) {
result = event
}
}
class Test {
val panel: JPanel
init {
panel = object : ActivePanel() {}
panel.fire("OK")
}
}
fun box(): String {
return Test().panel.result
}