5ca730e38c
- exotic situation 1 field + 2 entries - named import case - exotic situation 2 fields + 1 entry
38 lines
506 B
Kotlin
Vendored
38 lines
506 B
Kotlin
Vendored
// 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) {
|
|
<!OVERLOAD_RESOLUTION_AMBIGUITY!>SOME<!> -> true
|
|
else -> false
|
|
}
|
|
}
|