Mercerenies / gdlisp

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

Duplicate Main Classes #13

Closed Mercerenies closed 3 years ago

Mercerenies commented 3 years ago

The following should be an error, during the compile step.

(defclass Foo (Reference) main)
(defclass Bar (Reference) main)

Because each file can only have one main class. Currently, no error is reported, the classes get awkwardly merged, and we get a Godot-side error about duplicate constructors.