clasp icon indicating copy to clipboard operation
clasp copied to clipboard

defstruct-defined classes unavailable at compile-time

Open paulapatience opened this issue 1 year ago • 0 comments

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]

paulapatience avatar May 15 '24 18:05 paulapatience