[FIR2IR] Fix unwrapping of single-statement blocks

Unwrapping should be done with respect to `forceUnitType` parameter.

^KT-65019: Fixed
This commit is contained in:
vladislav.grechko
2024-01-16 14:16:46 +01:00
committed by Space Team
parent 5b7478c0a6
commit 8b1d87848d
22 changed files with 132 additions and 1 deletions
@@ -0,0 +1,12 @@
fun box(): String {
var variable = 0
try {
try {
null!!
} finally {
variable--
}
} catch (e: NullPointerException) {
return if (variable == -1) "OK" else "Fail"
}
}