#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 06 Sep 2016 18:08:12 +0200
changeset 20349 46e7949e6cf9
parent 20341 72ed68b0d0ec
child 20350 90f13d5d7e00
child 20351 1ae3d30c0149
#BUGFIX by cg class: ImmutableArray added: #grow: also catch this one.
ImmutableArray.st
--- a/ImmutableArray.st	Sat Sep 03 09:41:04 2016 +0200
+++ b/ImmutableArray.st	Tue Sep 06 18:08:12 2016 +0200
@@ -209,6 +209,13 @@
 
     self noModificationError.
     ^ super becomeSameAs:anotherObject
+!
+
+grow:newSize
+    "trigger an error if I should change my size"
+
+    self noModificationError.
+    ^ super grow:newSize
 ! !
 
 !ImmutableArray class methodsFor:'documentation'!