Compile-time type checking for slot against initform
Bug #1850423 reported by
Pierre Neidhardt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I can compile this:
(defclass foo ()
((name :type number :initform 17)))
It would be nice if SBCL would print a type warning at compile time.
It's especially relevant when the initform is some complex global variable defined somewhere else.
Thoughts?
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sorry, I meant
(defclass foo ()
((name :type number :initform "17")))