You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! I thin any() is the correct type here. Not sure why opaque() is there, perhaps Dialyzer got smarter or I simply just misunderstood the types. Care to make a PR? 😉
The type
meck:ret_spec()
is declared opaque, but its documentation also says:This is not compatible with how
opaque
types work, and will cause dialyzer errors when attempting to call e.g.meck:expect/4
like this:Dialyzer will complain that the code is attempting to pass something other than an opaque type as the 4th argument:
The only (compatible) way of fixing this is to change the
ret_spec()
type toReproduction Steps
Expected behavior
No dialyzer errors, since according to the documentation
any_value
is a validret_spec()
.Observed behavior
Versions
The text was updated successfully, but these errors were encountered: