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
@@ -295,6 +295,10 @@ public class LineNumberTest extends TestCaseWithTmpdir {
doTest();
}
public void testIfThen() {
doTestCustom();
}
public void testStaticDelegate() {
JetFile foo = createPsiFile("staticDelegate/foo.kt");
JetFile bar = createPsiFile("staticDelegate/bar.kt");