|
Open a Pharo 7.0.0RC1 image and evaluate in a playground:
'aa' collect: [ :a | 1 ]
This will open a Debugger with an "Improper store into indexable object error"
The problem is that collect: implementation (in SequenceableCollection) is using species (so in this case is an String) and it fails because collect: not necessarily produces Characters.
A common way of fix this is to provide an speciesForCollect in the Collection hierarchy, and not return String as the one for Strings.
|
|
|
Priority: 1 – Show Stopper !!!!!!
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|