source-academy / java-slang

Implementation of the Java language in TypeScript
Apache License 2.0
1 stars 0 forks source link

Compiler/type checker: Support for inheritance needed #58

Open martin-henz opened 5 months ago

martin-henz commented 5 months ago

https://share.sourceacademy.org/yezxq currently produces:

SyntaxError: SyntaxError: Expected " ", "/*", "//", "\r\n", "{", [ \t\x0C], or [\r\n] but "e" found.

The program:

class Parent {
    void test(Parent p) {
    }
}

class Test extends Parent {
    public static void main(String[] args) {

    }
}