mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-23 13:01:42 -08:00
add regression test for #292
This commit is contained in:
parent
a0a1a54747
commit
31ed58b7c3
1 changed files with 14 additions and 0 deletions
|
|
@ -1289,3 +1289,17 @@
|
|||
(test cmp.0060.loop-on-dotted-list
|
||||
(finishes (funcall (compile nil
|
||||
'(lambda () (loop for (i) on '(1 2 . 3)))))))
|
||||
|
||||
;;; Date 2017-12-02
|
||||
;;; Description
|
||||
;;;
|
||||
;;; type declarations for optional and keyword function arguments
|
||||
;;; resulted in an error, when the default values weren't of the
|
||||
;;; specified type.
|
||||
;;;
|
||||
;;; Bug https://gitlab.com/embeddable-common-lisp/ecl/issues/292
|
||||
(test cmp.0061.optional-type-declaration
|
||||
(declaim (ftype (function (real &optional real &key (:c symbol)) real) foo))
|
||||
(defun foo (a &optional (b 'test) &key (c 1)) (if b c a))
|
||||
(compile 'foo)
|
||||
(finishes (foo 1)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue