mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-04 19:40:34 -08:00
compilator: fixes issue #3 (regression on package :lapack).
cmptype-arith.lsp: problem introduced in commit
c0b23555c6 which added empty &optional
clause and &allow-other-keys capability to typespec for values.
Problem was, that multiple &optional keywords in typespec it
considered error, while
'(VALUES &OPTIONAL T &OPTIONAL T)
should return as optional part, list (T &optional T) - even if it
looks weird.
This commit is contained in:
parent
63a0d656d9
commit
7229cfefc9
1 changed files with 3 additions and 3 deletions
|
|
@ -176,9 +176,9 @@
|
|||
(when l
|
||||
(cmperr "Syntax error in type expression ~S" type)))
|
||||
(&optional
|
||||
(when optional-flag
|
||||
(cmperr "Syntax error in type expression ~S" type))
|
||||
(setf optional-flag t))
|
||||
(if optional-flag
|
||||
(push typespec optional)
|
||||
(setf optional-flag t)))
|
||||
(&rest
|
||||
(when (or (null l)
|
||||
(not (member (rest l) '(() (&allow-other-keys))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue