summaryrefslogtreecommitdiff
path: root/test/files/neg/faculty.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-03-27 13:34:36 +0000
committerMartin Odersky <odersky@gmail.com>2006-03-27 13:34:36 +0000
commiteccdddcc73dc532885abaee500e1b35953723d5a (patch)
treeac87a68be1d9325a58a5ccbb198bd58001f0cf5d /test/files/neg/faculty.scala
parentd0d3ec60983897a0d7b54b8fc74acb1adffa2e18 (diff)
downloadscala-eccdddcc73dc532885abaee500e1b35953723d5a.tar.gz
scala-eccdddcc73dc532885abaee500e1b35953723d5a.tar.bz2
scala-eccdddcc73dc532885abaee500e1b35953723d5a.zip
1.
2. Cleaned up search of implicit names to make it conformant to the spec. 3. Made Sean's SOURCE CHANGE messages dependent on option -debug.
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)
+
+}