diff options
-rw-r--r-- | test/files/cli/test1/Main.scala | 2 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.scalac | 4 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.scalac | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/test/files/cli/test1/Main.scala b/test/files/cli/test1/Main.scala index 9958d6a54c..885651e0ee 100644 --- a/test/files/cli/test1/Main.scala +++ b/test/files/cli/test1/Main.scala @@ -1,7 +1,7 @@ package test1 object Main { def main(args: Array[String]) = { - val arg = if (args.length > 0) args(0) else "?" + val arg = if (args != null && args.length > 0) args(0) else "?" Console.println("1: test " + arg + " passed") } } diff --git a/test/files/cli/test2/Main.check.scalac b/test/files/cli/test2/Main.check.scalac index ab0b5c66da..3f3244da74 100644 --- a/test/files/cli/test2/Main.check.scalac +++ b/test/files/cli/test2/Main.check.scalac @@ -46,7 +46,3 @@ where possible options include: -Xgenerics Use generic Java types one error found -files/cli/test2/Main.scala:5 error: not found: value test1 - test1.Main.main(args) - ^ -one error found diff --git a/test/files/cli/test3/Main.check.scalac b/test/files/cli/test3/Main.check.scalac index ddddcb3d9a..3f3244da74 100644 --- a/test/files/cli/test3/Main.check.scalac +++ b/test/files/cli/test3/Main.check.scalac @@ -46,7 +46,3 @@ where possible options include: -Xgenerics Use generic Java types one error found -files/cli/test3/Main.scala:5 error: not found: value test1 - test1.Main.main(args) - ^ -one error found |