Better warnings for keyword arguments in presence of :betfore, :after methods
Bug #1907273 reported by
Paul F. Dietz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
New
|
Wishlist
|
Unassigned |
Bug Description
When the set of keyword arguments for the methods of a generic function using standard method combination are known at compile time, sbcl will warn if a keyword argument in a call to that function is not in that set.
This warning is disabled if &allow-other-keys is present in the defgeneric or in any method definition for the function. However, it's still possible to give the warning if &allow-other-keys only occurs on :before and :after methods, as these will always be accompanied by an invocation of a primary or :around method. Enhance the warning processing to ignore &allow-other-keys on :before and :after methods.
Changed in sbcl: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Can you provide an example?