mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-13 12:52:08 -08:00
More accurate type for AND and OR forms
This commit is contained in:
parent
271f3499d2
commit
a0f102fb0c
1 changed files with 4 additions and 2 deletions
|
|
@ -55,7 +55,7 @@
|
|||
;; (AND x) => x
|
||||
(if butlast
|
||||
(make-c1form* 'FMLA-AND
|
||||
:type (c1form-type last)
|
||||
:type (type-or 'null (c1form-type last))
|
||||
:args butlast last)
|
||||
last))))
|
||||
|
||||
|
|
@ -69,7 +69,9 @@
|
|||
;; (OR x) => x
|
||||
(if butlast
|
||||
(make-c1form* 'FMLA-OR
|
||||
:type (type-or 'null (c1form-type last))
|
||||
:type (reduce #'type-or butlast
|
||||
:key #'c1form-type
|
||||
:initial-value (c1form-type last))
|
||||
:args butlast last)
|
||||
last))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue