Files
kotlin-fork/idea/testData/inspectionsLocal/redundantCompanionReference/sameNameSuperMemberFunction3.kt
T
2018-11-29 14:32:08 +03:00

19 lines
234 B
Kotlin
Vendored

// PROBLEM: none
interface A {
fun foo(x: Int) = "A$x"
}
open class B {
}
class C : B(), A {
fun test(): String {
return <caret>Companion.foo(1)
}
companion object {
fun foo(x: Int) = "C$x"
}
}