mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-23 04:52:42 -08:00
Add regression test for #46
This commit is contained in:
parent
5e290c92d3
commit
023fe5a369
1 changed files with 15 additions and 0 deletions
|
|
@ -622,3 +622,18 @@ the metaclass")
|
|||
#'f (list (find-class 'c))))))
|
||||
|
||||
|
||||
;;; Bug #46
|
||||
;;;
|
||||
;;; Reported 2016-05-30
|
||||
;;;
|
||||
;;; Description: DEFGENERIC doesn't create methods on same pass as
|
||||
;;; creating generics.
|
||||
|
||||
(test mop.0021.ensure-generic
|
||||
(is (progn (fmakunbound 'mop.0021.ensure-generic.fun)
|
||||
(defun mop.0021.ensure-generic.fun () 'hi)
|
||||
(with-temporary-file (input-file "
|
||||
(fmakunbound 'mop.0021.ensure-generic.fun)
|
||||
(defmethod mop.0021.ensure-generic.fun () (print 'bye))
|
||||
")
|
||||
(compile-file input-file)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue