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
Was changing append to maybe_append because it was broken and dialyzer caught it now or did another functions return type change?
Basically we used GoodResult | {error, Reason} as a return type internally, but GoodResult is a dict(), which is an opaque type, so any matching on it is raising opacity red flags. The append/2 function wrapped error as passthrough and assumed non-error results could be appended safely. lists:append/2 is called elsewhere in the module.
So to respect opacity constraints, I wrapped internal to uses {ok, GoodResult} | {error, Reason} all the way through, which lets us properly avoid opacity issues. I rename append to maybe_append to better represent its role as "append but with error handling".
Specifically, I think Dialyzer got better at catching some stuff it ignored before?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Covers portions of #2936, namely the bits about Dialyzer checks for xrl and yrl compilers, and for Common Test and EUnit.
Dependencies will need to be done in a different pull request.