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
kikofernandez opened this issue
Aug 23, 2023
· 2 comments
· May be fixed by #7717
Assignees
Labels
bugIssue is reported as a bugfixPlannedFocus issue added in sprint planningstalledwaiting for input by the Erlang/OTP teamteam:VMAssigned to OTP team VMtypesThe issue is related to types
Running dialyzer test.erl does not throw any error.
Expected behaviour
Variables can only be bound once to a single type, since multiple definitions do not make sense.
Which type is the expected one if Dialyzer / linter allows for multiple definitions of the same named type?
Affected versions
OTP-23+
The text was updated successfully, but these errors were encountered:
The issue is that it breaks existing code (backwards incompatible) since we forbid the repetition of type variables...
We also use some benchmarks mentioned in that PR that are broken with this change, so the benchmarks cannot be build and we are in a stalled position...
bugIssue is reported as a bugfixPlannedFocus issue added in sprint planningstalledwaiting for input by the Erlang/OTP teamteam:VMAssigned to OTP team VMtypesThe issue is related to types
Dialyzer allows duplicate named variables with different types in the type specification.
Example
Running
dialyzer test.erl
does not throw any error.Expected behaviour
Variables can only be bound once to a single type, since multiple definitions do not make sense.
Which type is the expected one if Dialyzer / linter allows for multiple definitions of the same named type?
Affected versions
OTP-23+
The text was updated successfully, but these errors were encountered: