Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Parser doesn't accept empty method #7525

Closed
bishabosha opened this issue Nov 8, 2019 · 0 comments
Closed

Java Parser doesn't accept empty method #7525

bishabosha opened this issue Nov 8, 2019 · 0 comments

Comments

@bishabosha
Copy link
Member

bishabosha commented Nov 8, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants