Skip to content
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

Signs in integer literals trigger warning #1931

Closed
ecpeterson opened this issue Jul 7, 2024 · 3 comments
Closed

Signs in integer literals trigger warning #1931

ecpeterson opened this issue Jul 7, 2024 · 3 comments

Comments

@ecpeterson
Copy link

ecpeterson commented Jul 7, 2024

Typing a function like

-spec f(LimitedInteger :: +1 | -1) -> any().

results in a few different ex_doc warnings, depending on what else appears in the signature, e.g., internal inconsistency or spec references type "+/1" but it is undefined or private.

@josevalim
Copy link
Member

josevalim commented Jul 7, 2024

Which version are you using? I believe this has been fixed in latest.

josevalim added a commit that referenced this issue Jul 7, 2024
@josevalim
Copy link
Member

I have pushed your example above to our test suite and it did not emit any warning. However, autolink got disabled in the presence of +integer, so that has been fixed. Given Lukas fixed the internal inconsistency errors earlier on, I believe this is handled in main. :) Thanks!

@ecpeterson
Copy link
Author

ecpeterson commented Jul 7, 2024

Ah: I was using 0.2.23 of rebar3_ex_doc, which bundles some version of ex_doc, but at a glance I'm not sure which. Glad the fix will catch up to me eventually. 🙏 Thank you also!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants