[FIR LT] Add proper source for when with subject

#KT-56982 Fixed
This commit is contained in:
Ivan Kylchik
2023-03-20 17:43:41 +01:00
committed by Space Team
parent 45e78455b2
commit e4591d7af9
8 changed files with 82 additions and 13 deletions
+30
View File
@@ -0,0 +1,30 @@
// FILE: test.kt
fun box() {
val a: Int? = 3
when (a) {
1 -> {
1
}
2 -> {
2
}
else -> {
0
}
}
}
// EXPECTATIONS JVM JVM_IR
// test.kt:4 box
// test.kt:5 box
// test.kt:6 box
// test.kt:9 box
// test.kt:13 box
// test.kt:16 box
// EXPECTATIONS JS_IR
// test.kt:4 box
// test.kt:5 box
// test.kt:5 box
// test.kt:16 box