Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error because of value class with @tailrec methods. #6574

Closed
scabug opened this issue Oct 28, 2012 · 3 comments
Closed

Compile error because of value class with @tailrec methods. #6574

scabug opened this issue Oct 28, 2012 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Oct 28, 2012

Given code:

class Bad(val v: Int) extends AnyVal {
  @annotation.tailrec final def foo() {
    foo()
  }
}

Compiler said:

@tailrec annotated method contains no recursive calls
@scabug
Copy link
Author

scabug commented Oct 28, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6574?orig=1
Reporter: @Atry
Affected Versions: 2.10.0-RC1

@scabug
Copy link
Author

scabug commented May 31, 2013

@scabug
Copy link
Author

scabug commented Jun 5, 2013

@retronym said:
scala/scala#2632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants