Skip to content

Java Parser doesn't accept empty method #7525

Closed
@bishabosha

Description

@bishabosha

Present in current master as of 8/11/2019

minimized code

Interface.java

public interface Interface {
  static void s() {}
}

dotc Interface.java errors:

-- Error: Interface.java:2:18 --------------------------------------------------
2 |  static void s() {}
  |                  ^
  |                  ';' expected but '{' found.
-- [E067] Syntax Error: Interface.java:2:14 ------------------------------------
2 |  static void s() {}
  |              ^
  |Declaration of method s not allowed here: only classes can have declared but undefined members
two errors found

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions