Duplicated object in Set #14638
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
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Set mapSet = new Set();
mapSet.add({'map item': 'First Item'});
mapSet.add({'map item': 'Second Item'});
mapSet.add({'map item': 'Third Item'});
mapSet.add({'map item': 'Third Item'});
What is the expected output? What do you see instead?
Expected mapSet to be {{map item: First Item}, {map item: Second Item}, {map item: Third Item}}
mapSet is instead {{map item: First Item}, {map item: Second Item}, {map item: Third Item}, {map item: Third Item}}
What version of the product are you using? On what operating system?
Dart VM version: 0.8.5.1_r28990 (Tue Oct 22 05:03:51 2013) on "macos_x64"
Additional:
Summary line from http://api.dartlang.org/docs/releases/latest/dart_core/Set.html
"A collection of objects in which each object can occur only once."
The text was updated successfully, but these errors were encountered: