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.
26 lines
475 B
Kotlin
Vendored
26 lines
475 B
Kotlin
Vendored
enum class Test {
|
|
A, B, OTHER
|
|
}
|
|
|
|
fun peek() = Test.A
|
|
|
|
fun box(): String {
|
|
val x = when (val t1 = peek()) {
|
|
Test.A -> {
|
|
val y = peek()
|
|
when (val t2 = y) {
|
|
Test.A ->
|
|
when (val t3 = peek()) {
|
|
Test.A -> "OK"
|
|
else -> "other 3"
|
|
}
|
|
|
|
else -> "other 2"
|
|
}
|
|
}
|
|
|
|
else -> "other 1"
|
|
}
|
|
return x
|
|
}
|