summaryrefslogtreecommitdiff
path: root/test/files/script
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/script')
-rw-r--r--test/files/script/fact.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/script/fact.scala b/test/files/script/fact.scala
index 76d52b6910..d48dac6f0f 100644
--- a/test/files/script/fact.scala
+++ b/test/files/script/fact.scala
@@ -21,7 +21,7 @@ exec scala -nocompdaemon "$SOURCE" "$@"
!#
-val x = Integer.parseInt(argv(0))
+val x = argv(0).toInt
def fact(x: Int):Int =
if(x==0) 1