[FIR] Fix detecting that if in then branch of outer if used as expression

This commit is contained in:
Dmitriy Novozhilov
2021-02-10 11:31:39 +03:00
committed by TeamCityServer
parent e6588ee8a4
commit 671ebc6819
7 changed files with 49 additions and 2 deletions
@@ -0,0 +1,10 @@
fun run(block: () -> Unit) {}
fun test(b1: Boolean, b2: Boolean) {
var result = false
run {
if (b1)
if (b2)
result = true
}
}