script parameters

still a lot of things to do
This commit is contained in:
Stepan Koltsov
2012-05-28 20:30:23 +04:00
parent 6244404344
commit 30e44fdc5f
49 changed files with 833 additions and 108 deletions
@@ -1 +1,3 @@
println("hello world")
for (arg in args) {
println(arg)
}
@@ -1,2 +1,3 @@
OUT hello world
OUT hi
OUT there
Return code: 0
@@ -53,6 +53,6 @@ public class CompilerSmokeTest extends KotlinIntegrationTestBase {
@Test
public void script() throws Exception {
runCompiler("script", "-script", "hello.ktscript");
runCompiler("script", "-script", "hello.ktscript", "hi", "there");
}
}