1 2 3 4 5 6 7 8 9 10 | object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args: String*) } } |
b2JqZWN0IE1haW4gewoKIGRlZiBtYWluKGFyZ3M6IEFycmF5W1N0cmluZ10pIHsKICBkZWYgcHJpbnRBbGwoYTogU3RyaW5nKikgewogICBhIGZvcmVhY2ggcHJpbnRsbgogIH0KICBwcmludEFsbChhcmdzOiBTdHJpbmcqKQogfQoKfQ==
Main.scala:7: error: ')' expected but identifier found.
printAll(args: String*)
^
one error found
-
result: Compilation error (maybe you wish to see an example for Scala)



