[FE 1.0] Correctly set USED_AS_EXPRESSION for unreachable when and if blocks

^KT-50028 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-12-06 14:05:19 +03:00
committed by teamcity
parent 7bcd3c7948
commit df2e9e3797
10 changed files with 131 additions and 9 deletions
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STRANGE_IMPLICIT_CAST
fun kt49182(x: Boolean): String {
return if (x) {
return "O"
@@ -23,4 +20,4 @@ fun box(): String {
exit()
}
return a
}
}