In the definition of SOFT-LIST-OF in types.lisp, the DEFTYPE form uses SUBTYPEP to see if NULL is a subtype of the element type. It takes NIL being returned as meaning NIL is not in the type. However, if SUBTYPEP returned NIL as its second return value, we cannot conclude this, and the generated type may be wrong.
In the definition of
SOFT-LIST-OF
in types.lisp, theDEFTYPE
form usesSUBTYPEP
to see ifNULL
is a subtype of the element type. It takesNIL
being returned as meaningNIL
is not in the type. However, ifSUBTYPEP
returnedNIL
as its second return value, we cannot conclude this, and the generated type may be wrong.