Add more tests for KT-49200

- exotic situation 1 field + 2 entries
- named import case
- exotic situation 2 fields + 1 entry
This commit is contained in:
Mikhail Glukhikh
2022-06-14 18:09:26 +02:00
committed by Space
parent d44f180aa9
commit 5ca730e38c
13 changed files with 390 additions and 0 deletions
@@ -0,0 +1,37 @@
// KT-49200
// FILE: first/KtNodeTypes.java
package first;
public interface KtNodeTypes {
String SOME = "Some";
}
// FILE: SomeEnum.kt
package second
enum class SomeEnum {
SOME;
}
// FILE: OtherEnum.kt
package third
enum class SomeEnum {
SOME;
}
// FILE: test.kt
import first.KtNodeTypes.*
import second.SomeEnum.*
import third.SomeEnum.*
fun test(arg: String): Boolean {
return when (arg) {
SOME -> true
else -> false
}
}