FIR2IR: Do not add fake override if the member is overridden

#KT-56398 Fixed
This commit is contained in:
Ilmir Usmanov
2023-02-15 17:23:35 +01:00
parent 3c9d653595
commit bfa2937fb8
7 changed files with 94 additions and 17 deletions
@@ -0,0 +1,25 @@
// ISSUE: KT-56398
// TARGET_BACKEND: JVM
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: common.kt
expect interface Interface {
fun foo(): String
}
class Klass : Interface {
override fun foo() = "OK"
}
// MODULE: jvm()()(common)
// TARGET_PLATFORM: JVM
// FILE: main.kt
actual interface Interface {
actual fun foo(): String
}
fun box() = Klass().foo()