Skip to content

fix annotated type variables with distinct types#30

Open
kikofernandez wants to merge 1 commit into
deadtrickster:masterfrom
kikofernandez:master
Open

fix annotated type variables with distinct types#30
kikofernandez wants to merge 1 commit into
deadtrickster:masterfrom
kikofernandez:master

Conversation

@kikofernandez

Copy link
Copy Markdown

as per OTP pull request #7717, duplicate annotation variables that have different types will not be allowed in OTP-27.

this PR simply re-writes the type specification so that it is compliant with the OTP change.

as per OTP pull request
[#7717](erlang/otp#7717), duplicate annotation
types will not be allowed in OTP-27.

this PR simply re-writes the type specification so that it is compliant
with the OTP change.
@kikofernandez

kikofernandez commented Oct 9, 2023

Copy link
Copy Markdown
Author

never mind. As long as the annotated variables have the same type, there is no issue.
closing.

@kikofernandez

Copy link
Copy Markdown
Author

Re-opening the PR, I realised that the UserState annotation is sometimes written with type term() and sometimes with type user_state(). This will not be valid code in OTP-27, thus the PR.

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.

1 participant