diff options
Diffstat (limited to 'test/files/neg/tailrec.check')
-rw-r--r-- | test/files/neg/tailrec.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/tailrec.check b/test/files/neg/tailrec.check new file mode 100644 index 0000000000..22d70e82a0 --- /dev/null +++ b/test/files/neg/tailrec.check @@ -0,0 +1,10 @@ +tailrec.scala:6: error: could not optimize @tailrec annotated method + def facfail(n: Int): Int = + ^ +tailrec.scala:42: error: could not optimize @tailrec annotated method + @tailrec def fail1(x: Int): Int = fail1(x) + ^ +tailrec.scala:45: error: could not optimize @tailrec annotated method + @tailrec def fail2[T](xs: List[T]): List[T] = xs match { + ^ +three errors found |