Closed beef331 closed 2 years ago
Thanks for the PR! But I think we should rather make the errors useful. Currently, whatever is declared within the gdobj
scope becomes a part of that class and can be accessed with self.symbol
. This change breaks this assumption.
Hopefully this makes everyone happy, better error handling now with proper lines on error.
Previously declaring
let
/const
in the gdobj body would error with helpless parse error, this makes it so they get declared before the object.