Add tests for newly discovered issue with ECMA5 and top level vars in root scope.
This commit is contained in:
@@ -152,6 +152,16 @@ public final class MiscTest extends AbstractExpressionTest {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testNamespaceLevelVarInPackage() throws Exception {
|
||||
fooBoxIsValue("OK");
|
||||
}
|
||||
|
||||
//TODO: see http://youtrack.jetbrains.com/issue/KT-2564
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void TODO_testNamespaceLevelVarInRoot() throws Exception {
|
||||
runFunctionOutputTest("namespaceLevelVarInRoot.kt", Namer.getRootNamespaceName(), "box", "OK");
|
||||
}
|
||||
|
||||
public void testLazyPropertyGetterNotCalledOnStart() throws Exception {
|
||||
checkOutput("lazyProperty.kt", "Hello, world! Gotcha 3");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user