JS: fix exception during translation of for expression with iterator having generic type constrained by Iterable. Fix #KT-8385

This commit is contained in:
Alexey Andreev
2016-09-30 16:30:43 +03:00
parent 977fd8f591
commit 61b429f2f0
3 changed files with 21 additions and 12 deletions
@@ -2094,6 +2094,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("forIteratesOverTypeParameter.kt")
public void testForIteratesOverTypeParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/for/forIteratesOverTypeParameter.kt");
doTest(fileName);
}
@TestMetadata("forOnEmptyArray.kt")
public void testForOnEmptyArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/for/forOnEmptyArray.kt");