summaryrefslogtreecommitdiff
path: root/test/files/neg/faculty.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/faculty.scala')
-rwxr-xr-xtest/files/neg/faculty.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/faculty.scala b/test/files/neg/faculty.scala
new file mode 100755
index 0000000000..464033ef30
--- /dev/null
+++ b/test/files/neg/faculty.scala
@@ -0,0 +1,5 @@
+object Test {
+
+ def faculty(x: int) = if (x == 0) 1 else x * faculty(x - 1)
+
+}