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: Make it an error to use a label variable without the Label constraint #4788

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

Marwes
Copy link
Contributor

@Marwes Marwes commented May 25, 2022

Forgetting to add the Label constraint leads to confusing typechecking failures down the line as
it becomes possible to pass non-labels and string literals ends up treated as strings instead of labels.

Markus Westerlind added 2 commits June 7, 2022 11:48
…raint

Forgetting to add the `Label` constraint leads to confusing typechecking failures down the line as
it becomes possible to pass non-labels and string literals ends up treated as strings instead of labels.
@Marwes Marwes merged commit 2de2379 into master Jun 7, 2022
@Marwes Marwes deleted the fix_constraint branch June 7, 2022 10:05
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