Merge pull request #500 from MichaelNedzelsky/kt5320

JS Backend: fixed associativity of JsCondition(ternary operator).

Fixed wrong code generation when use JsCondition(ternary operator) as condition of simple `if`(JsCondition).

#KT-5320 fixed
This commit is contained in:
Zalim Bashorov
2014-07-22 15:17:43 +04:00
3 changed files with 25 additions and 3 deletions
@@ -194,4 +194,8 @@ public final class MiscTest extends AbstractExpressionTest {
public void testKt5058() throws Exception {
checkFooBoxIsTrue("KT-5058.kt");
}
public void testRightAssocForGeneratedConditionalOperator() throws Exception {
checkFooBoxIsOk();
}
}