Skip to content

Commit

Permalink
Revert wrong "correction" in replimoc5, add new test
Browse files Browse the repository at this point in the history
Sorry folks! Guess I shouldn't just assume java and minijava are
identical
  • Loading branch information
TehMillhouse committed Nov 8, 2014
1 parent f8e2f08 commit 45901ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pos-parser/NewArrayAccess.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* 'new boolean[1][0]' is valid in Minijava (new array: boolean, size 1)(array access: 0) and invalid in Java */
class a {
public void f() {
boolean a = new boolean[1][0];
}
}
2 changes: 1 addition & 1 deletion pos-parser/replimoc5.mj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Oo {

int minus_zero = -0;

new basic_type[42][][][];
new basic_type[42][][][15];

!null * -false;

Expand Down

0 comments on commit 45901ab

Please sign in to comment.