Issue 11198 - Error messages for declaring a 'version' inside main() and other functions are unclear

https://d.puremagic.com/issues/show_bug.cgi?id=11198