summaryrefslogtreecommitdiff
path: root/test/files/neg/tailrec-2.check
blob: ab6733946da086e559a61c93edb8eb46edb1f3b0 (plain) (blame)
1
2
3
4
tailrec-2.scala:6: error: could not optimize @tailrec annotated method: it contains a recursive call targetting a supertype
  @annotation.tailrec final def f[B >: A](mem: List[B]): List[B] = (null: Super[A]).f(mem)
                                ^
one error found