Open
Description
Thank you for filing! Check list:
- Is it a bug? Usage questions should often be asked in the forum instead.
- Concise, focused, friendly issue title & description.
- A minimal, reproducible example.
- OS and browser versions, if relevant.
- Is it already fixed in master? Instructions
type key = A | B
let dict = Map.fromArray([(A, Some(1)), (B, None)])
assert(dict->Map.get(A) == Some(Some(1))) // as expected
assert(dict->Map.get(B) == None) // expected to fail, passes
assert(dict->Map.get(B) == Some(None)) // expected to pass, fails
JS's Map returns undefined
when the key is not present, and also when the value is undefined
.
Apologies if issue is in the wrong place, I am new to rescript