-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[SUPERSEDED] No illegal stars in typed select #6107
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
|
The first cut failed because accessors were star-typed, or star-crossed. I tested bootstrap build locally thanks to @lrytz instructions on another PR, maybe he can also say how far off base this tweak is. I didn't follow type completers in namers far enough to get a sense of it. |
|
The tweak probably isn't tweaky enough, but one test failure is because it relies on previous star in function: It also re-broke varargs in ctors. I guess that relies on the accessors having star type. |
|
This area fills me with dread, but I've been here before so I'll assign myself to this ticket. Let's move the PR to 2.13.x though. |
|
ping @retronym |
|
hmm i don't see it, which part of the diff fixes the bug? |
|
I see the fix allows star in the signature, but requires Probably that made more sense back in the days of I kind of like the current fix, but it's rather eccentric. |
`typedIdent` converts repeated params as required, and `typedSelect` should do the same. Also accessors, should be converted to Seq. The type completer is set up in `Namers`. Restore test for super param
In the old days, eta expansion would preserve repeatedness of parameters. Instead, disallow `T*` except for methods and constructors. In function types, it should be expressed with `Seq`, including for the expected type of an eta expansion.
|
Added a commit that disallows Maybe that should be deprecated until The previous commit still does something, compare to last year: The original report, that It's probably the aliasing bit that retronym found dreadful. I don't see a new test, and I don't remember which tests fail without that change, which I'll have to puzzle over a minute. You may have noticed 38 Down in the Friday NY Times crossword, "rotary phone", @retronym so-called. I wonder if "compiler engineer" could be considered a retronym. Then is retronym a compiler engineer or the other way around? |
|
closing for inactivity, can be revived & reopened whenever |
|
Since retronym is dreadfully hung up, I moved the other commits to separate PRs. |
|
new PR: #7399 |
typedIdentconverts repeated params as required,and
typedSelectshould do the same.There is a more generic issue in scala/bug#6929
Fixes scala/bug#8923