Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
140 stars 1 forks source link

Duplicate Identifiers between Main Class and Toplevel Scope #74

Closed Mercerenies closed 2 years ago

Mercerenies commented 2 years ago

Following onto #41, there is a small corner case we have not resolved. Namely, a main class and the toplevel scope can still have name clashes.

(defn foo ())
(defclass Foo (Reference) main (defn foo ()))

This should be an error (even though the outer name compiles to static and the inner does not), but it is currently accepted by GDLisp and will fail when Godot tries to run it.

Mercerenies commented 2 years ago

Closed as of 7639f59