|
I do not immediately see that there is a problem.
In general #asXX methods do not guarantee a copy (self is returned in almost all cases when the message is received by a compatible class).
A subclass is (or should be) compatible with its superclass, hence it is not necessary to return a Set or a String, a subtype is OK too.
Consider
'100 €' asString.
which returns a WideString, not a String (which does not even exist as concrete type).
Why exactly is #asSet returning an IdentitySet a problem for you ?
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|