Redundant companion reference: don't report in case of name conflicts
#KT-27539 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6e27d7a2a5
commit
1db7a0e0cc
+18
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user