dwango / fialyzer

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

Support pattern using bound variables #137

Closed yoshihiro503 closed 5 years ago

yoshihiro503 commented 5 years ago

In Erlang, the pattern using bound variables work as like constant pattern. For example:

X = 1,
case 123 of
  X -> X + 1
end.

** exception error: no case clause matching 123

For this, we must consider the second binding of a already bound variable.

The case of shadowing variables must also be considered, but it is a different PR https://github.com/dwango/fialyzer/issues/135.