Skip to content

Tailrec label def failing compilation. #2024

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

Closed
nicolasstucki opened this issue Feb 23, 2017 · 2 comments
Closed

Tailrec label def failing compilation. #2024

nicolasstucki opened this issue Feb 23, 2017 · 2 comments

Comments

@nicolasstucki
Copy link
Contributor

def assume[T]: Any = assume

fails to compile with the following error message

value tailLabel2 does not take parameters
@DarkDimius
Copy link
Contributor

@nicolasstucki, could you please provide a complete example?
I cant reproduce it on a normal method.

@nicolasstucki
Copy link
Contributor Author

object Test {
  def main(args: Array[String]): Unit = { }
  def assume[T]: Any = assume
}

DarkDimius added a commit to dotty-staging/dotty that referenced this issue Feb 23, 2017
nullary methods with type parameters were handled wrongly,
which led to absence of type application and a cryptic error message.
DarkDimius added a commit to dotty-staging/dotty that referenced this issue Feb 23, 2017
felixmulder pushed a commit to dotty-staging/dotty that referenced this issue Mar 8, 2017
nicolasstucki added a commit that referenced this issue Apr 5, 2017
Fix #2024: TypeApply can be a final apply of a recursive method.
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