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
286 B
Kotlin
Vendored
19 lines
286 B
Kotlin
Vendored
enum class Test {
|
|
A,
|
|
B,
|
|
C
|
|
}
|
|
|
|
fun checkA(a: Test) = when(a) {
|
|
Test.B -> false
|
|
Test.A -> true
|
|
else -> false
|
|
}
|
|
|
|
fun box() : String {
|
|
if(!checkA(Test.A)) return "fail"
|
|
if( checkA(Test.C)) return "fail"
|
|
if( checkA(Test.B)) return "fail"
|
|
return "OK"
|
|
}
|