-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary patterns and Elixir.String.t #16
Comments
The gradualizer currently doesn't know anything about Elixir. But it would be really nice to support it! Patches are welcome. |
Hello! |
hello, I think this warning is caused by Gradualizer not yet supporting binaries (and binary patterns). If you replace |
@mbuhot, I believe we've added the support needed for your program to go through Gradualizer. Can you confirm? |
@josefs I still getting a type error, but now it is consistent whether the function is typed as
Looks like there is a comment in the tests (https://github.com/josefs/Gradualizer/blob/master/test/should_pass/bitstring.erl#L5-L9) indicating that binary patterns don't type check against Feel free to close this issue if you'd rather track binary pattern support (independent of Elixir) separately. |
@mbuhot, thanks for your quick feedback! The error message that you get now is rather puzzling to me but we don't have anyone working on Elixir support so I'm afraid it won't be investigated any time soon. So I'll close this ticket then. The comment that you pointed to turned out to be outdated and I've updated the test case to reflect that. |
Hello, thanks for creating Gradualizer!
I tried it out on a simple module and ran into this error:
Looks like it hasn't resolved the type
Elixir.String.t
as a synonym forbinary
?The text was updated successfully, but these errors were encountered: