Since we don't do a check for duplicate value vars (value vars are currently only used when looking up map keys in a pattern), we can end up with a decision tree with some extra branches.
When constant propagation has propagated two statically known values to a pattern matching construct as value vars, we should check for and remove duplicates when expanding the map pattern node.
Since we don't do a check for duplicate value vars (value vars are currently only used when looking up map keys in a pattern), we can end up with a decision tree with some extra branches.
When constant propagation has propagated two statically known values to a pattern matching construct as value vars, we should check for and remove duplicates when expanding the map pattern node.