Files
kotlin-fork/idea/testData/inspectionsLocal/removeRedundantQualifierName/notApplicableEnumEntryInEnumEntry2.kt
T
Toshiaki Kameyama a4f805ccd0 "Redundant qualifier name": add tests for enum/object
Relates to #KT-34113
Relates to #KT-32965
Relates to #KT-33991
Relates to #KT-33597
2019-10-17 14:30:25 +07:00

21 lines
298 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun main() {
MyEnum.B.foo()
}
enum class MyEnum {
A {
override fun foo() {
println("A")
}
},
B {
override fun foo() {
println("B")
<caret>B.foo()
}
};
abstract fun foo()
}