Skip to content

Commit 8cb9039

Browse files
authored
use main annotation
The main annotation is more idiomatic, otherwise the package object becomes the main class.
1 parent a1339c4 commit 8cb9039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/g8/src/main/scala/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def main(args: Array[String]): Unit = {
1+
@main def Hello: Unit = {
22
println("Hello world!")
33
println(msg)
44
}

0 commit comments

Comments
 (0)