diff options
Diffstat (limited to 'test/files/neg/faculty.scala')
-rwxr-xr-x | test/files/neg/faculty.scala | 5 |
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) + +} |