Skip to content

Commit fff1ca2

Browse files
committed
Fix typo and add test
1 parent 15e4e13 commit fff1ca2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/docs/reference/dropped/delayedInit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ some JVM's means that it will only be interpreted. So, better not use it
1919
for benchmarking! Also, if you want to access the command line arguments,
2020
you need to use an explicit `main` method for that.
2121

22-
object Hello extends App {
22+
object Hello {
2323
def main(args: Array[String]) =
2424
println(s"Hello, ${args(0)}")
2525
}

tests/run/delayedInit.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Test extends App {
2+
println("Hello World: ")
3+
}

0 commit comments

Comments
 (0)