Entry point selection.

$ kotlinc -entry foo.bar.qux ...

selects `qux(args: Array<String>):Unit` in the package `foo.bar` as an entry point.

The short flag is `-e`.
This commit is contained in:
Alexander Gorshenev
2017-06-01 18:45:54 +03:00
committed by alexander-gorshenev
parent a2fa4938f3
commit 5192bd1313
11 changed files with 205 additions and 3 deletions
@@ -0,0 +1,8 @@
fun fail() {
println("Test failed, this is a wrong main() function.")
}
fun foo(args: Array<String>) {
println("Hello.")
}