summaryrefslogtreecommitdiff
path: root/test/files/neg/tailrec-2.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/tailrec-2.check')
-rw-r--r--test/files/neg/tailrec-2.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/tailrec-2.check b/test/files/neg/tailrec-2.check
new file mode 100644
index 0000000000..ab6733946d
--- /dev/null
+++ b/test/files/neg/tailrec-2.check
@@ -0,0 +1,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