KT-1747 Can't have main function in nested namespaces

#KT-1747 Fixed
This commit is contained in:
pTalanov
2012-05-05 18:55:19 +04:00
parent 869a8ab1ba
commit c1e4b20e38
2 changed files with 11 additions and 0 deletions
@@ -129,4 +129,8 @@ public final class MiscTest extends AbstractExpressionTest {
public void testKt1865() throws Exception {
checkFooBoxIsTrue("KT-1865.kt");
}
public void testMainFunInNestedNamespace() throws Exception {
checkOutput("mainFunInNestedNamespace.kt", "ayee");
}
}
@@ -0,0 +1,7 @@
package a.b.c
import js.*
fun main(args : Array<String>) {
println("ayee")
}