Single-branch if-statements

Single-branch if-expressions are now compiled to statements if the result is
not used

 #KT-3036 In Progress
This commit is contained in:
Alexander Udalov
2012-11-22 15:13:18 +04:00
parent 9c7724b7f9
commit af601b5a90
6 changed files with 64 additions and 17 deletions
@@ -0,0 +1,9 @@
fun foo() {
if (0 < 1) {
return
}
if (1 < 2) else {
return
}
}