Equality of Sets should be fixed. #10391
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
With the following code:
var a = new Set.from(['emily', 'm', 'fortuna']);
var b = new Set.from(['emily', 'm', 'fortuna']);
print(a == b);
"false" gets printed.
These are both Hash sets whose containing objects implement equality based on content, so we should actually inspect the hash set contents to see if the elements in the set are the same and return true, rather than just checking if a and b are the same Set object.
The text was updated successfully, but these errors were encountered: