I'm trying to build a command line app, why this c...
# announcements
h
I'm trying to build a command line app, why this code complies when I run this command
kotlinc /mydir/kotlin-dsl/samples/hello-kotlin/src/main/kotlin/samples/HelloWorld.kt -include-runtime -d tester.jar
Copy code
//HelloWorld.kt file
package samples

fun main(args: Array<String>) {
    val p = Parser()
    println(p.hello())
}

class Parser {
    fun hello(): String {
        return "Hello world"
    }
}