1db7a0e0cc
#KT-27539 Fixed
19 lines
237 B
Kotlin
Vendored
19 lines
237 B
Kotlin
Vendored
// PROBLEM: none
|
|
|
|
open class A {
|
|
fun foo(x: Int) = "A$x"
|
|
}
|
|
|
|
open class B: A() {
|
|
}
|
|
|
|
class C : B() {
|
|
fun test(): String {
|
|
return <caret>Companion.foo(1)
|
|
}
|
|
|
|
companion object {
|
|
fun foo(x: Int) = "C$x"
|
|
}
|
|
}
|