Closed GalaxianMonster closed 2 years ago
It also produces 3/2/1 syntax errors when:
3 Errors:
>> anything()
1: anything()
SyntaxError: Expected ';'
1: anything()
SyntaxError: Expected an expression
1: anything()
SyntaxError: Expected ';'
2 Errors:
>> anything(1)
1: anything(1)
SyntaxError: Expected ';'
1: anything(1)
SyntaxError: Expected ';'
or:
>> anything(1);;
1: anything(1);;
SyntaxError: Expected ';'
1: anything(1);;
SyntaxError: Expected an expression
1 Error:
>> anything(1);
1: anything(1);
SyntaxError: Expected ';'
Try to compile with this command: nimble build --multimethods:on
.
Or if you are using Mac or Linux, you can do this: ./build.sh
.
Before running the command you may need to run this chmod +x build.sh
Thanks.
You are welcome :)
Code entered to REPL:
or
Result: