Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Registry.register/3 and Registry.match/4 - type of value? #6507
I've noticed a potential discrepancy in how the type of
According to their typespecs, the
Initially in my code, I used Registry to register a value that is a map. And when using
Only when I ran dialyzer did I notice that using map as the pattern is invalid.
So my question is: should a map be allowed as a type of pattern in
I find that for now I'd have to put the map inside a tuple, to satisfy the Dialyzer check.
Per our conversation on slack, the issue is that the typespec for
It seems the right typespec should really be just