FIR2IR: wrap do-while loop in IrBlock

"so that variables declared in loop body are not visible outside of the
loop" (from commit d096f1d)
This commit is contained in:
Jinseong Jeon
2021-03-18 00:29:09 -07:00
committed by TeamCityServer
parent 08670114c8
commit 7898d167f3
13 changed files with 197 additions and 161 deletions
@@ -1,5 +1,7 @@
fun foo() {
do// COMPOSITE {
val x: Int = 42
// } while (EQEQ(arg0 = x, arg1 = 42).not())
{ // BLOCK
do// COMPOSITE {
val x: Int = 42
// } while (EQEQ(arg0 = x, arg1 = 42).not())
}
}