Skip to content

Default methods, mixin and invokeSpecial on JVM  #1392

Closed
@DarkDimius

Description

@DarkDimius
class A { def m = 1 }
class B extends A { override def m = 2 }
trait T extends A
class C extends B with T {
  override def m = super[T].m // should invoke A.m currently invokes B.m
}

scala/scala-dev#143 (comment)
I have a fix in mind, but I will not have time to try it out before going for vacation.
Making a note for myself to come back to it in September.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions