[FIR2IR] Fix unwrapping of single-statement blocks
Unwrapping should be done with respect to `forceUnitType` parameter. ^KT-65019: Fixed
This commit is contained in:
committed by
Space Team
parent
5b7478c0a6
commit
8b1d87848d
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user