We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Example from dotr built from master:
scala> class C(x: String) // defined class C scala> class C(inline: String) 1 |class C(inline: String) | ^ | an identifier expected, but ':' found
inline as I understand is soft keyword only allowed in inlined methods, here it should be treated as normal identifier?
The text was updated successfully, but these errors were encountered:
inline is also allowed for parameters of inline methods
inline
inline def pow(x: Double, inline n: Int) = ....
Not sure if parameters named inline this should be allowed.
Sorry, something went wrong.
Yes, especially this works: inline def pow(x: Double, inline: Int) = ??? which is totally inconsistent with class C(inline: String) not working.
inline def pow(x: Double, inline: Int) = ???
class C(inline: String)
63233cd
Merge pull request #9127 from dotty-staging/fix-#9046
b5f65f5
Fix #9046: Allow inline as parameter name
No branches or pull requests
Example from dotr built from master:
inline as I understand is soft keyword only allowed in inlined methods, here it should be treated as normal identifier?
The text was updated successfully, but these errors were encountered: