mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +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.
15 lines
201 B
Kotlin
Vendored
15 lines
201 B
Kotlin
Vendored
enum class E {
|
|
A, B;
|
|
}
|
|
|
|
fun foo(e: E?): String {
|
|
val c = when (e) {
|
|
null -> "Fail: null"
|
|
E.B -> "OK"
|
|
E.A -> "Fail: A"
|
|
}
|
|
return c
|
|
}
|
|
|
|
fun box(): String = foo(E.B)
|