-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Tail recursion from inside value defs #20145
Comments
LucySMartin
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Apr 9, 2024
Noticed this while resolving merge conflicts on #20143 its an easy fix. |
I think there was a Scala 3 tweak to consider returns as tail pos? This errors on 2.13. |
Either wat it shouldn't stack overflow. |
Gedochao
added
area:annotations
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
labels
Apr 10, 2024
LucySMartin
pushed a commit
to LucySMartin/scala3
that referenced
this issue
Jun 19, 2024
…l definition, previously this would neither optimise nor fail.
LucySMartin
pushed a commit
to LucySMartin/scala3
that referenced
this issue
Jun 19, 2024
…l definition, previously this would neither optimise nor fail.
LucySMartin
pushed a commit
to LucySMartin/scala3
that referenced
this issue
Jun 19, 2024
…l definition, previously this would neither optimise nor fail.
LucySMartin
pushed a commit
to LucySMartin/scala3
that referenced
this issue
Jun 20, 2024
…l definition, previously this would neither optimise nor fail.
WojciechMazur
pushed a commit
that referenced
this issue
Jul 9, 2024
…inition, previously this would neither optimise nor fail. [Cherry-picked 036b86b]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.4.1
Minimized code
Output
Stack overflow error on the line
return foo(i + 1)
Expectation
10000001 should be prited to the console - or if it is determined this is not a tail location - it shoud fail to compile.
The text was updated successfully, but these errors were encountered: