summaryrefslogtreecommitdiff
path: root/test/files/run/t7711-script-args.script
blob: 19b7a74924234853c0c659546e8e687863855331 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
exec ${SCALA_HOME}/bin/scala "$0" "$@" 2>&1
!#

Console println s"Hello, scripted test!"
Console println s"What ${args mkString " "} have you for me today?"

//def unused = 88
//newSource1.scala:8: warning: private method in <$anon: AnyRef> is never used
//Console println s"Hello, $argv, are you still here?"
//newSource1.scala:9: error: not found: value argv