Redundant companion reference: fix false positive for class with name Companion #KT-27861 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
4b8f8604f2
commit
d0d98dc283
@@ -0,0 +1,9 @@
|
||||
class Companion {
|
||||
fun test() {
|
||||
<caret>Companion.foo
|
||||
}
|
||||
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Companion {
|
||||
fun test() {
|
||||
foo
|
||||
}
|
||||
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
fun test() {
|
||||
Companion.<caret>Companion.foo
|
||||
}
|
||||
}
|
||||
class Companion {
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
fun test() {
|
||||
Companion.foo
|
||||
}
|
||||
}
|
||||
class Companion {
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
<caret>Companion.foo
|
||||
}
|
||||
}
|
||||
class Companion {
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// PROBLEM: none
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
<caret>Companion.foo
|
||||
}
|
||||
|
||||
class Companion {
|
||||
companion object {
|
||||
val foo = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user