summaryrefslogblamecommitdiff
path: root/test/files/neg/tailrec-2.check
blob: 4f763a1c8df8219d9db9a07fc7f8432ac6ba5c86 (plain) (tree)
1
2
3
4
                                                                                                                             
                                                                                          
                                                                                     
               
tailrec-2.scala:6: error: could not optimize @tailrec annotated method f: 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