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.
val f = mymethod
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
scala 3.0.0-M3
In the REPL, try this:
def cat1(s1: String)(s2: String) = s1 + s2 val fcat1 = cat1
1 |val fcat1 = cat1 | ^^^^ | The syntax `<function> _` is no longer supported; | you can simply leave out the trailing ` _`
By accident, I noticed you get exactly the same error message if you type def fcat1 = cat1.
def fcat1 = cat1
It accepts the definition of fcat1, as described in the automatic eta expansion docs, https://dotty.epfl.ch/docs/reference/changed-features/eta-expansion.html
fcat1
The text was updated successfully, but these errors were encountered:
Is this only with -source 3.1 ?
-source 3.1
Sorry, something went wrong.
Don't use suffix _ in eta expansion
_
46d6076
There was a superfluous `_` added in eta expansion. That was needed in Scala 2, but is no longer needed in Scala 3. Fixes scala#11311
Seems to be only under 3.1
15d4ba1
Yes, I'm using -source 3.1.
Successfully merging a pull request may close this issue.
Compiler version
scala 3.0.0-M3
Minimized code
In the REPL, try this:
Output
By accident, I noticed you get exactly the same error message if you type
def fcat1 = cat1
.Expectation
It accepts the definition of
fcat1
, as described in the automatic eta expansion docs, https://dotty.epfl.ch/docs/reference/changed-features/eta-expansion.htmlThe text was updated successfully, but these errors were encountered: