-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix/#329 and others #339
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
Fix/#329 and others #339
Conversation
The last two commits fixing #329 LGTM. |
68d9657
to
2514c3b
Compare
I notice that
See scala/scala@e2fd411 / scala/scala@e572f29 for the history. |
Although I wasn't able to exploit it, I wonder if UPDATE Actually, I found a way to break it:
|
@retronym I added the failing Java/Scala override as a test. Regarding underlyingIfRepeated, I'll revert that one. |
See t3252 for a test case.
Reformulated matchign spec and implemented accordingly. Previous fix for scala#329 would have missed third new error case in over.scala.
1) Drop redundant signature comparison in overriding pairs 2) Abstract from repeated parameters when calculating matches
This was a left-over from a failed attempt to have OverridingPiars work exclusively by comparing signatures. If we do that then repeated and underlying do have the same signature and therefore are supposed to match. But as @retronym notes, this leads to problems. In any case, we no longer try to make overriding pairs work that way, because it fails for other reasons as well.
7df36a3
to
976ed6f
Compare
Rebased to current master |
I am going to merge now since reviewers comments are taken care of and there are other PRs based on this one. |
Backport "Revert unconditional lint of Inlined expansion" to 3.3 LTS
Fix of #329 and SI 3252. Review by @olhotak.