Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Don't set :initform nil if the type does not allow it #7

Closed
wants to merge 1 commit into from

Conversation

ruricolist
Copy link
Contributor

As of SBCL 2.0.9, "the compiler signals a warning at compile-time when an initform of T, NIL or 0 does not match a STANDARD-CLASS slot's declared type".

This adds a compile-time check that prevents :initform nil from being inserted in the expansion if null is not a subtype of the slot's declared type.

@EuAndreh
Copy link
Owner

EuAndreh commented Dec 4, 2020 via email

@ruricolist ruricolist closed this Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants