-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Star *
infix type fails compilation
#1961
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
Comments
Backquoting doesn't help, same error when writing |
@som-snytt on Gitter mentioned that this was also the case before 2.11, then it got fixed and the spec updated: https://issues.scala-lang.org/browse/SI-8325 |
I am not sure this is a good fix. The problem is that it clashes with postfix |
The parser change in scalac doesn't seem too bad: https://github.com/scala/scala/pull/3576/files |
It requires lookahead, which is a big deal because it widens the Scanner/Parser interface. Dotty's parser does not need lookahead. |
IIRC, lookahead is also needed to get the |
|
This is probably resolved. |
In which version? I tried it on Scastie now and still produces the same compilation error. |
I can still reproduce on mater |
Fix #1961: Allow `*` as an infix operator
Gives
The text was updated successfully, but these errors were encountered: