JS: when deciding whether inner class of a local class captures this, don't check for subtyping, since frontend generates strict classes in descriptors. Remove fix for #KT-13583, since it's no more needed. Fix #KT-13792

This commit is contained in:
Alexey Andreev
2016-09-12 13:51:00 +03:00
parent 0a240b2a3a
commit 85a775375a
3 changed files with 44 additions and 6 deletions
@@ -704,6 +704,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("enclosingClassFromInnerLocalClass.kt")
public void testEnclosingClassFromInnerLocalClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/closure/enclosingClassFromInnerLocalClass.kt");
doTest(fileName);
}
@TestMetadata("enclosingClassFromLocalClass.kt")
public void testEnclosingClassFromLocalClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/closure/enclosingClassFromLocalClass.kt");