We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd8257 commit d20314fCopy full SHA for d20314f
tests/neg/tailcall/i1221.scala
@@ -1,6 +1,6 @@
1
import annotation.tailrec
2
3
-object Test{
+object I1221{
4
final def foo(a: Int): Int = {
5
if ((foo(a - 1): @tailrec) > 0) // error: not in tail position
6
foo(a - 1): @tailrec
tests/pos/tailcall/i1221.scala
+object i1221{
if (foo(a - 1) > 0)
0 commit comments