Undescriptive error message for void dereferencing

Issue #58 new
Jesper Öqvist created an issue

When dereferencing void JastAddJ should report a more descriptive error, similar to that of javac:

class Test {
        void f(int i) {
        void m() {

With JastAddJ I get the following error:

  Semantic Error: no method named f(int) in void matches.

Javac reports a more descriptive error:

Test.java:5: error: void cannot be dereferenced

Comments (0)

  1. Log in to comment