bdfhjk / VICER

4 stars 3 forks source link

Wrong error message when attempted to return a value from a void #99

Closed chaser92 closed 9 years ago

chaser92 commented 9 years ago
void main(void) {
  int b;
  b = 3;
  return 3;
}

fails which is correct, but the message TYPE MISMATCH. EXPECTED { "type": "void" } GOT "void"

chaser92 commented 9 years ago

TYPE MISMATCH. EXPECTED not void GOT void is still not a good error message. Please fix.