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

Type inference doesn't run in constant stack space #3

Closed
Blaisorblade opened this issue Jul 30, 2014 · 1 comment
Closed

Type inference doesn't run in constant stack space #3

Blaisorblade opened this issue Jul 30, 2014 · 1 comment
Assignees
Labels

Comments

@Blaisorblade
Copy link
Member

See report here (on derived codebase):

walkie/icfp2014@9982935#commitcomment-7189254

It appears that @tailrec doesn't see the tail call happening through an auxiliary function.

@Blaisorblade Blaisorblade self-assigned this Jul 30, 2014
Blaisorblade referenced this issue in walkie/icfp2014 Aug 1, 2014
Workaround https://issues.scala-lang.org/browse/SI-8767: @tailrec does
not work when the tail recursion is indirect, and does not even warn
about that.

Fixes #3.
@Blaisorblade
Copy link
Member Author

I moved extraneous comment into #4, so that it's preserved when I port the fix from walkie/icfp2014.

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

No branches or pull requests

1 participant