X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fmacros.lisp;h=838d6999cdf757c3c8ddda1d4d7df2a165904d9e;hb=a160917364f85b38dc0826a5e3dcef87e3c4c62c;hp=ebddde6f300624744c84571638fc82b4e9438040;hpb=b1cd84e0503ff29d72a860ea1709c87f721412ed;p=sbcl.git diff --git a/src/code/macros.lisp b/src/code/macros.lisp index ebddde6..838d699 100644 --- a/src/code/macros.lisp +++ b/src/code/macros.lisp @@ -63,6 +63,12 @@ is not of the specified type. If an error is signalled and the restart is used to return, this can only return if the STORE-VALUE restart is invoked. In that case it will store into PLACE and start over." + ;; Detect a common user-error. + (when (and (consp type) (eq 'quote (car type))) + (error 'simple-reference-error + :format-control "Quoted type specifier in ~S: ~S" + :format-arguments (list 'check-type type) + :references (list '(:ansi-cl :macro check-type)))) ;; KLUDGE: We use a simpler form of expansion if PLACE is just a ;; variable to work around Python's blind spot in type derivation. ;; For more complex places getting the type derived should not