clasp-developers / clasp

clasp Common Lisp environment
https://clasp-developers.github.io/
2.54k stars 142 forks source link

defstruct-defined classes unavailable at compile-time #1585

Open paulapatience opened 1 month ago

paulapatience commented 1 month ago

Compiling the following file:

(defstruct foo)
(eval-when (:compile-toplevel :load-toplevel :execute)
  (defmethod bar ((foo foo))))

results in the following error:

ERROR while evaluating compiler-time side effect:
  Could not find the class FOO.
   [Condition of type CLEAVIR-CST-TO-AST:EVAL-ERROR]