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:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user