Redundant companion reference: don't report in case of name conflicts

#KT-27539 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-10-14 23:32:26 +03:00
committed by Mikhail Glukhikh
parent 6e27d7a2a5
commit 1db7a0e0cc
8 changed files with 174 additions and 13 deletions
@@ -0,0 +1,18 @@
// 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"
}
}