summaryrefslogtreecommitdiff
path: root/test/files/neg/tailrec.check
blob: 22d70e82a07c2548a9464e9e7c50accd957569ec (plain) (blame)
1
2
3
4
5
6
7
8
9
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