Turn off optimizations in case of do-while presence

This commit is contained in:
Denis Zharkov
2017-09-26 13:02:23 +03:00
parent c31b5beb9e
commit a51078fda6
5 changed files with 15 additions and 5 deletions
@@ -2,5 +2,5 @@ fun test(cond1: Boolean) {
do {
if (cond1) continue
val cond2 = false
} while (cond2) // cond2 may be not defined here
} while (<!UNINITIALIZED_VARIABLE!>cond2<!>) // cond2 may be not defined here
}