dwango / fialyzer

[WIP] Faster Implementation of Dialyzer
https://dwango.github.io/fialyzer/
Apache License 2.0
56 stars 8 forks source link

Support map pattern #102

Open kmizu opened 5 years ago

amutake commented 5 years ago

To support map pattern, it is not correct that we simply convert pattern to expr.

For example,

case M of
  #{a := A} -> A
end

#{a := A} is converted to #{a => A} : #{a := α}, and then τ = #{a => α} (where M : τ). However, M may have some keys other than a.

In #141, we partially support map pattern by considering all map as map().