"Redundant qualifier name": add tests for enum/object

Relates to #KT-34113
Relates to #KT-32965
Relates to #KT-33991
Relates to #KT-33597
This commit is contained in:
Toshiaki Kameyama
2019-10-04 16:11:17 +09:00
committed by Dmitry Gridin
parent 866ab51ce5
commit a4f805ccd0
15 changed files with 211 additions and 0 deletions
@@ -0,0 +1,21 @@
// 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()
}