Files
kotlin-fork/compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt
T
Denis.Zharkov fa65081878 Revert "FIR2IR: minimize scope processing in fake override generation"
This reverts commit 9934cfbb00.

See the tests added: Subclass may have private same-name method that
should not be a reason to avoid generating fake overrides
2021-03-31 15:57:03 +03:00

10 lines
129 B
Kotlin
Vendored

interface A<T> {
fun foo(t: T): T = t
}
class B : A<String> {
private fun foo() {}
}
fun box(): String = B().foo("OK")