We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@tailrec
3.3.1
import scala.annotation.tailrec object Foo: @tailrec def foo: Int = foo object Bar: export Foo.foo
-- [E097] Syntax Error: -------------------------------------------------------- 9 | export Foo.foo | ^ |TailRec optimisation not applicable, method foo contains no recursive calls
I should be able to export a @tailrec method.
The text was updated successfully, but these errors were encountered:
Do not propagate @tailrec to exported methods
aad73c1
Fixes scala#19505
Do not propagate @tailrec to exported methods (#19509)
fff24b1
Fixes #19505
b76f92f
Fixes #19505 [Cherry-picked aad73c1]
nicolasstucki
Successfully merging a pull request may close this issue.
Compiler version
3.3.1
Minimized code
Output
Expectation
I should be able to export a
@tailrec
method.The text was updated successfully, but these errors were encountered: