Support parameterless and suspend main functions in multifile classes

#KT-26574 Fixed
This commit is contained in:
Denis Zharkov
2018-09-07 15:19:08 +03:00
parent b53194ef1a
commit fc3c4ad883
9 changed files with 102 additions and 9 deletions
@@ -48,6 +48,13 @@ public class CompilerSmokeTest extends CompilerSmokeTestBase {
run("hello.run", "-cp", jar, "Hello.HelloKt", "O", "K");
}
public void testHelloAppSuspendMainInMultifile() throws Exception {
String jar = tmpdir.getAbsolutePath() + File.separator + "hello.jar";
assertEquals("compilation failed", 0, runCompiler("hello.compile", "-include-runtime", "hello.kt", "-d", jar));
run("hello.run", "-cp", jar, "Hello.Foo", "O", "K");
}
public void testHelloAppParameterlessMain() throws Exception {
String jar = tmpdir.getAbsolutePath() + File.separator + "hello.jar";