Skip to content

@tailrec not properly enforced #5397

Closed
Closed
@allanrenucci

Description

@allanrenucci
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 is a pending test case

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions