X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/f64eb323a5798e155cc494043f5f750abf50a482..c41a95b125742d97c2d0ff782964c30421eaf5ee:/src/class-make-impl.lisp diff --git a/src/class-make-impl.lisp b/src/class-make-impl.lisp index 7263e44..78f8fed 100644 --- a/src/class-make-impl.lisp +++ b/src/class-make-impl.lisp @@ -66,6 +66,8 @@ (default-slot-from-property (class 'chain-link slot-names) (defmethod make-sod-slot ((class sod-class) name type pset &optional location) (with-default-error-location (location) + (when (typep type 'c-function-type) + (error "Slot declarations cannot have function type")) (let ((slot (make-instance (get-property pset :slot-class :symbol 'sod-slot) :class class