Skip to content

Fix type inferencing and code navigation for interface default method with overload(s) #1220

@eric-milles

Description

@eric-milles

Consider the following:

public interface I {
  void m(int i);
  default void m(long l) {
    // ...
  }
}
class C implements I {
  void m(int i) {
    // ...
  }
}
new C().m(42L)

Reference to method "m" is indicated as C#m(int), not I#m(long).

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions