JS: Fix ClassCastException that occurs when 'when' clause has map range #KT-23458 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-06-05 10:04:57 +09:00
committed by Anton Bannykh
parent 65ba57bcae
commit 84e49e5b57
4 changed files with 27 additions and 2 deletions
@@ -3202,6 +3202,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/expression/when/whenWithLongRangeClause.kt");
}
@TestMetadata("whenWithMapRangeClause.kt")
public void testWhenWithMapRangeClause() throws Exception {
runTest("js/js.translator/testData/box/expression/when/whenWithMapRangeClause.kt");
}
@TestMetadata("whenWithOneStmWhen.kt")
public void testWhenWithOneStmWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/whenWithOneStmWhen.kt");
@@ -3202,6 +3202,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/expression/when/whenWithLongRangeClause.kt");
}
@TestMetadata("whenWithMapRangeClause.kt")
public void testWhenWithMapRangeClause() throws Exception {
runTest("js/js.translator/testData/box/expression/when/whenWithMapRangeClause.kt");
}
@TestMetadata("whenWithOneStmWhen.kt")
public void testWhenWithOneStmWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/whenWithOneStmWhen.kt");