a4c7619c89
Without this commit, JVM name mapping logic in BE does not work for FIR, because FIR cannot use old BuiltInsPackageFragmentImpl descriptor. In this commit we add our own implementation thus fixing a pack of FIR black box tests.
19 lines
220 B
Kotlin
Vendored
19 lines
220 B
Kotlin
Vendored
// !LANGUAGE: -ProhibitComparisonOfIncompatibleEnums
|
|
|
|
enum class A {
|
|
OK
|
|
}
|
|
|
|
enum class B {
|
|
FAIL
|
|
}
|
|
|
|
fun f() = A.OK
|
|
|
|
fun box(): String {
|
|
return when (f()) {
|
|
B.FAIL -> "fail"
|
|
A.OK -> "OK"
|
|
}
|
|
}
|