Files
kotlin-fork/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity4.kt
T
Mikhail Glukhikh 5ca730e38c Add more tests for KT-49200
- exotic situation 1 field + 2 entries
- named import case
- exotic situation 2 fields + 1 entry
2022-06-15 17:20:00 +00:00

39 lines
559 B
Kotlin
Vendored

// FIR_IDENTICAL
// KT-49200
// FILE: first/KtNodeTypes.java
package first;
public interface KtNodeTypes {
String SOME = "Some";
}
// FILE: SomeEnum.kt
package second
enum class SomeEnum {
SOME;
}
// FILE: third/OtherTypes.java
package third
public interface OtherTypes {
String SOME = "Other";
}
// FILE: test.kt
import first.KtNodeTypes.*
import second.SomeEnum.*
import third.OtherTypes.*
fun test(arg: String): Boolean {
return when (arg) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>SOME<!> -> true
else -> false
}
}