Skip to content

Unchanged parent class reported as having a missing method #211

@2m

Description

@2m

v1

abstract class A { def foo: Int }
class C extends A { def foo: Int = 1 }

v2

abstract class A { def foo: Int }
class B extends A { def foo: Int = 1 }
class C extends B

problem

Fails with:

[error]         The following problems were not expected
[error]         - abstract method foo()Int in class A does not have a correspondent in new version

but class A is unchanged...

expected

No error.

Originally found in akka/akka#24625 (review)

A failing test-case was provided in #204

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions