Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
1f70975f
Commit
1f70975f
authored
Apr 26, 2003
by
pfdietz
Browse files
Found a bug in cmucl in class redefinition. Added test that demonstrates the bug.
parent
6b8ea3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/defclass-02.lsp
View file @
1f70975f
...
...
@@ -230,3 +230,31 @@
(slot-value (make-instance 'class-0208a) 'a)
(slot-value (make-instance 'class-0208b) 'a))
x x)
;;;
;;; That was failing when things were reloaded.
;;; Try a test that redefines it
(deftest class-redefinition.1
(let*
((cobj1 (eval '(defclass class-0209a ()
((a :allocation :class :initform 'x)))))
(cobj2 (eval '(defclass class-0209b (class-0209a)
((a :allocation :instance)))))
(cobj3 (eval '(defclass class-0209a ()
((a :allocation :class :initform 'x)))))
(cobj4 (eval '(defclass class-0209b (class-0209a)
((a :allocation :instance))))))
(values
(eq cobj1 cobj3)
(eq cobj2 cobj4)
(class-name cobj1)
(class-name cobj3)
(slot-value (make-instance 'class-0209a) 'a)
(slot-value (make-instance 'class-0209b) 'a)))
t t
class-0209a
class-0209b
x x)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment