niv / neverwinter.nim

CLI tools and nim library used in Neverwinter Nights: Enhanced Edition development
MIT License
131 stars 29 forks source link

nwn_script_comp: type mismatch on assignment isn't detected in non-void-main and non-starting-conditional scripts #122

Open LaputianBird opened 5 months ago

LaputianBird commented 5 months ago

Uncommenting either line in the attached mismatch.nss will correctly trigger a type mismatch error upon compiling. However the error is otherwise ignored when the file is parsed and eventually skipped, as it's the case for include files. mismatch.zip