JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names.

This commit is contained in:
Zalim Bashorov
2014-12-10 22:46:42 +03:00
parent af82e69214
commit 6b50d74056
4 changed files with 37 additions and 3 deletions
@@ -120,6 +120,12 @@ public class DynamicTestGenerated extends AbstractDynamicTest {
doTest(fileName);
}
@TestMetadata("nameClashing.kt")
public void testNameClashing() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/dynamic/cases/nameClashing.kt");
doTest(fileName);
}
@TestMetadata("operationsWithAssignment.kt")
public void testOperationsWithAssignment() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/dynamic/cases/operationsWithAssignment.kt");