-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[SUPERSEDED] Remove adaptation of 0-arg methods under -Xsource:3.0 and preserve infix unit value #6974
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
Conversation
Hey, who put that red ex there? We need a label for "works on my machine."
|
1eb009d
to
bb7a333
Compare
This looked like something weird, but actually it's simple:
|
1e6e88a
to
c0f7c0c
Compare
needs rebase |
quoth the raven: needs rebase |
c0f7c0c
to
2b834aa
Compare
Sorry, I forgot about this one. I was looking at what remained TODO in scala/scala-dev#471, and this PR was not referenced. How about focussing this PR on the last commit? #7328, I think, subsumes the first two (it's a little less ambitious/polished, but it will do, I'd say) |
note that #7328 is now merged |
bda8c90
to
2bf5a60
Compare
43222e7
to
696f4c4
Compare
Rebased and squashed for lrytz's 👀 . Also TIL 👁️🗨️ for anti-bullying, which is another reason lrytz is the fellow to have on your PR review board. The M$ icon looks more like "big brother is watching everything you say." |
Oh thanks @adriaanm I see you recently took the review upon yourself. You needn't feel too bad that Eugene's change has been waiting since last June: "get thee to a nullary" is still funny! Rebasing is getting kind of stale, however. |
Get thee to a nullary, go. Farewell -Xfuture.
When parsing infix expression, a Parens node is created for parens. If it is empty, they wrote unit value. Otherwise, per the spec, the possibly many comma-separated arguments are taken as arguments. `() == ()` is now what it is. `x op()` is corrected to `x.op()`. The dot-averse must rely on postfix and empty application to use `x op`. Restore wording adapt is removed.
696f4c4
to
6e94408
Compare
Commits not reordered or squashed.
Besides updating check files, attempts to preserve unit value in
which currently warns because it takes the empty parens as an empty arg list instead of unit value.
The spec is clear that "several args in parens" are taken as an arg list, not empty parens.