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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user