Redundant qualifier name: don't report for EnumClass.Companion

#KT-37181 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-03-12 04:14:18 +01:00
committed by Vladimir Dolzhenko
parent f747f8543e
commit 831fbba0c1
5 changed files with 77 additions and 3 deletions
@@ -0,0 +1,17 @@
// PROBLEM: none
package foo.bar
import foo.bar.MyEnum.*
enum class MyEnum(val id: Int) {
A(1),
B(2);
companion object {
fun baz() = ""
}
}
fun test() {
<caret>MyEnum.Companion::baz
}
@@ -0,0 +1,17 @@
// PROBLEM: none
package foo.bar
import foo.bar.MyEnum.*
enum class MyEnum(val id: Int) {
A(1),
B(2);
companion object O {
fun baz() = ""
}
}
fun test() {
<caret>MyEnum.O::baz
}
@@ -0,0 +1,17 @@
// PROBLEM: none
package foo.bar
import foo.bar.MyEnum.*
enum class MyEnum(val id: Int) {
A(1),
B(2);
companion object {
fun baz() = ""
}
}
fun test() {
<caret>MyEnum.Companion.baz()
}