You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a problem with the Map constructor that happens when the seq parameter contains multiple elements with the same key (but differing value). In .NET, this results in a Map containing the last seq value for a given key; in W#, this results in a Map containing the first seq value for a given key.
Repro:
let test() =
let listWithDupes=[("A",1);("B",2);("A",3)]
let m = Map listWithDupes
let i = m.Item("A")
// This is 3 on .NET, and 1 in W#.
i
Tested on 4.6.1.381.
The text was updated successfully, but these errors were encountered:
Hi all,
There's a problem with the Map constructor that happens when the seq parameter contains multiple elements with the same key (but differing value). In .NET, this results in a Map containing the last seq value for a given key; in W#, this results in a Map containing the first seq value for a given key.
Repro:
Tested on 4.6.1.381.
The text was updated successfully, but these errors were encountered: