Closed gavinking closed 9 years ago
The typechecker accepts this:
shared native class Elephant() { shared String name = "Trompon"; } shared native("jvm") class Elephant() { shared String name = "Trompon"; }
And even this:
shared native class Elephant() { shared native String name = "Trompon"; } shared native("jvm") class Elephant() { shared String name = "Trompon"; }
But it doesn't accept this:
shared native class Elephant() { shared native String name; } shared native("jvm") class Elephant() { shared String name = "Trompon"; }
That can't be right.
@quintesse would you take a look, please.
All these examples are now properly rejected.
Good, thanks.
The typechecker accepts this:
And even this:
But it doesn't accept this:
That can't be right.
@quintesse would you take a look, please.