mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
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"
|
|
}
|
|
}
|