ruricolist / serapeum

Utilities beyond Alexandria
MIT License
415 stars 41 forks source link

SOFT-LIST-OF problem #140

Closed pfdietz closed 1 year ago

pfdietz commented 1 year ago

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.