Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
1f70975f
Commit
1f70975f
authored
Apr 26, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
ansi-tests/defclass-02.lsp
ansi-tests/defclass-02.lsp
+28
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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