nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
89 stars 18 forks source link

override without base function #221

Closed andreasOL16 closed 1 year ago

andreasOL16 commented 1 year ago

This is compiled

`on init end on

function func override message("func overriden without base function") end function

on note call func end on `

I would expect the compiler to complain about the override keyword.

mkruselj commented 1 year ago

File ksp_compiler.py, line 689 onwards. See if something could be done there?

mkruselj commented 1 year ago

Looking into it more with @JackWilliams-FractureSounds, it seems compiler is intentionally silently disregarding the override keyword, so that you can have imported files overriding other files, yet still working on their own. So, closing this one then.