-
Notifications
You must be signed in to change notification settings - Fork 21
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
Scala 2.13.0-RC1 - method without override
modifier rejected when overridden both earlier and later in trait linearisation
#11495
Comments
No, for linearization order the first occurence is the important one, see https://www.scala-lang.org/files/archive/spec/2.12/05-classes-and-objects.html#class-linearization. I think 2.13.0-RC1 is doing the right thing. |
I can actually remove the |
override
modifier rejected when overridden both earlier and later in trait linearisation
Isn't this the opposite of #11136? (Not that I'm biased...) |
The PR to the earlier ticket is explanatory (though it also has a long tail of follow-up). What do you call a duplicate ticket that is the opposite? A mirror ticket? I'm not sure which ticket I admire more for their creative variants of |
I don't understand - is this resolved? |
@Sciss See smarter's comment -- the current behavior is correct, the old behavior was wrong, and was always wrong. Now I have to check my "stackable traits" answer on stackoverflow from 2012. |
I think this is a bug:
Note that in the linearisation order,
Writable
is last and thus should "eliminate" its first occurrence inWritableFileLike
, which I guess triggers the error in 2.13.0-RC1:The text was updated successfully, but these errors were encountered: