Skip to content

Fix support for static trait methods #1152

@eric-milles

Description

@eric-milles

Consider the following:

trait T {
  static m() { 'T' }
}
class C implements T {
}
print C.m()
print T.m()

Should print "T" when compiled and executed followed by MissingMethodException. Also, Java sources should behave as follows:

public class J {
  static void main(String[] args) {
    System.out.print(C.m()); // should output "T"
    System.out.print(T.m()); // should not be found
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions