Fixes for cases where unexpected declaration descriptor hierarchy caused invalid scoping structure in js backend.

Minor refactorings.
This commit is contained in:
Pavel V. Talanov
2012-03-15 19:13:40 +04:00
parent e4a658fbeb
commit 090fd1b7f6
17 changed files with 186 additions and 139 deletions
@@ -93,7 +93,23 @@ public final class MiscTest extends AbstractExpressionTest {
checkFooBoxIsTrue("funInConstructor.kt");
}
public void testFunInConstructorBlock() throws Exception {
checkFooBoxIsTrue("funInConstructorBlock.kt");
}
public void testPropertyAsFunCalledOnConstructor() throws Exception {
checkFooBoxIsTrue("propertyAsFunCalledOnConstructor.kt");
}
public void testNamespacePropertyCalledAsFun() throws Exception {
checkFooBoxIsTrue("namespacePropertyCalledAsFun.kt");
}
public void testExtensionLiteralCreatedAtNamespaceLevel() throws Exception {
checkFooBoxIsTrue("extensionLiteralCreatedAtNamespaceLevel.kt");
}
public void testTemporaryVariableCreatedInNamespaceInitializer() throws Exception {
checkFooBoxIsTrue("temporaryVariableCreatedInNamespaceInitializer.kt");
}
}