Bug in _Inbox: Not Spam
• You are subscribed to this case
Hi, (IdentitySet with: Object new) asSet returns an instance of IdentitySet containing an object. This behavior is surprising. I would expect to return an Instance of Set as the class it's only compatible but not the same. There are multiple ways to fix that according to the semantics you want to honor. A less more obvious issue with the current implementation is that this method isn't returning a copy of the original object, which of course is fast but arguably dangerous.