diff options
Diffstat (limited to 'test/files/neg/faculty.check')
-rw-r--r-- | test/files/neg/faculty.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/faculty.check b/test/files/neg/faculty.check new file mode 100644 index 0000000000..1a1c65f853 --- /dev/null +++ b/test/files/neg/faculty.check @@ -0,0 +1,4 @@ +faculty.scala:3 error: recursive method faculty needs result type + def faculty(x: int) = if (x == 0) 1 else x * faculty(x - 1)
+ ^ +one error found |