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,15 @@
// PROBLEM: none
open class B {
fun foo(x: Int) = "B$x"
}
class C : B() {
fun test(): String {
return <caret>Companion.foo(1)
}
companion object {
fun foo(x: Int) = "C$x"
}
}