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

Fix dialyzer errors stemming from mis-specced functions with new sub parameter #34

Merged
merged 2 commits into from
Mar 27, 2018

Conversation

GoNZooo
Copy link
Contributor

@GoNZooo GoNZooo commented Mar 18, 2018

The new sub parameter for a few of the Token functions has a default value of nil, but this wasn't reflected in the type spec. This meant that dialyzer simply concluded that the function could never finish and so anything that used these functions simply propagated that.

I noticed this because entire trees of execution in one of our projects were marked as having no local return, so this error bubbles up to the top, making dialyzer effectively useless for whatever uses `Goth .

This also addresses #31

@GoNZooo GoNZooo changed the title Fix dialyzer errors stemming from mi Fix dialyzer errors stemming from mis-specced functions for new sub parameter Mar 18, 2018
@GoNZooo GoNZooo changed the title Fix dialyzer errors stemming from mis-specced functions for new sub parameter Fix dialyzer errors stemming from mis-specced functions with new sub parameter Mar 18, 2018
@peburrows peburrows merged commit 742c018 into peburrows:master Mar 27, 2018
@peburrows
Copy link
Owner

Thanks! I'll get a new version pushed to hex.pm soon.

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

Successfully merging this pull request may close these issues.

2 participants