-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Don't issue spurious nilary-overrides-nullary warning #10509
Don't issue spurious nilary-overrides-nullary warning #10509
Conversation
The errors are supposed to go thru (I'm sure I saw that in years past without understanding the why.) I'll see if a PR is forthcoming I do see this fix shortcircuits, but if the traits are unrelated, you need to check the override of the composition. |
Aha. TWL. |
is TWL a German thing? Treue Wörter Lauten |
probably to be superseded by #10512 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add the pos test from the other PR, and verified that it fails before.
This fix avoids the case that Seth noted shouldn't even warn: both "legs" of the override pair are compiled separately. The lower leg lacks a source position.
The word is not "scurrilous" but "scurrilary". That's when you have a scurried function. |
fixes scala/bug#12851
My ambition had only been to fix the crasher stemming from #10484, but this fixes the underlying spurious-warning bug, too.
@som-snytt I gather from one of your other messages that you've already written a partest for this. So I didn't write one, on the assumption either that your own PR will supersede this PR, or that you'll kindly add your partest to this PR.
What I did do, though, was manually verify that it fixes what I reported in scala/bug#12851, as well as fixing it in the Ammonite repo where the problem originally turned up.