Open mattunlv opened 7 years ago
import std.io;
//proc void bar(chan.read[][] chans) { }
proc void foo() { chan[][] c = new chan[100][10];
//bar(c.read);
}
Compilation successful /Users/matt/.processj/t2.java:7: error: illegal start of expression _ld0$c = = new PJOne2OneChannel[10010]; ^ /Users/matt/.processj/t2.java:9: error: illegal start of expression [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: not a statement [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: ';' expected [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: not a statement [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: ';' expected [i] = new PJOne2OneChannel(); ^ 6 errors
also breaks for a simpler program:
proc void foo() { chan[] c = new chan[100]; }
import std.io;
//proc void bar(chan.read[][] chans) { }
proc void foo() { chan[][] c = new chan[100][10];
//bar(c.read);
}
Compilation successful /Users/matt/.processj/t2.java:7: error: illegal start of expression _ld0$c = = new PJOne2OneChannel[10010]; ^ /Users/matt/.processj/t2.java:9: error: illegal start of expression [i] = new PJOne2OneChannel();
^
/Users/matt/.processj/t2.java:9: error: not a statement
[i] = new PJOne2OneChannel();
^
/Users/matt/.processj/t2.java:9: error: ';' expected
[i] = new PJOne2OneChannel();
^
/Users/matt/.processj/t2.java:9: error: not a statement
[i] = new PJOne2OneChannel();
^
/Users/matt/.processj/t2.java:9: error: ';' expected
[i] = new PJOne2OneChannel();
^
6 errors
also breaks for a simpler program:
proc void foo() { chan[] c = new chan[100];
}