NPE on incorrect proc definition with returning type
KanoAlgiz opened this issue · 3 comments
in main.ms
include('test.ms')
in test.ms
void _main(){}
Stacktrace: https://pastebin.com/BEU1TNEW
But, if you write void _procname(){}
directly in main.ms - no stacktrace, just two compile errors:
Correct syntax for procs with type is:
void proc _main() {}
Getting a Java stacktrace for invalid syntax is a bug though.
Edit: Corrected syntax.
Yes, I quckly found that I've mistyped, but it felt right to report =)
compile error with 'unknown source' looks strange too...