```scala class Test { def cond: Boolean = ??? def foo(x: => Int) = ??? @annotation.tailrec final def bar: Int = if (cond) foo(bar) // should be an error else bar } ``` [t4649](https://github.com/lampepfl/dotty/blob/master/tests/pos/tailcall/t4649.scala) is a pending test case