JS backend: fix dangling else issue in generated code for JsToStringGenerationVisitor

JS backend: fix KT-5253: when with if inside

 #KT-5253 Fixed
This commit is contained in:
Michael Nedzelsky
2014-08-19 19:14:50 +04:00
parent bfa8fea5b8
commit 629d9a275b
3 changed files with 35 additions and 1 deletions
@@ -108,4 +108,8 @@ public final class WhenTest extends AbstractExpressionTest {
public void testWhenWithOneStmWhen() throws Exception {
fooBoxTest();
}
public void testIfInWhenDanglingElseIssue() throws Exception {
checkFooBoxIsOk();
}
}