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

Branching in linearity checking #41

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

danieljharvey
Copy link
Owner

@danieljharvey danieljharvey commented Aug 19, 2024

Embarrassingly, we never checked whether the following was accepted by the linearity checker.

let tuple = (True,False,False);
case True {
  True => { tuple },
  False => { tuple }
}

Previously we'd complain about multiple uses of tuple, but that's silly, now we scope our uses when navigating if and case statements.

@danieljharvey danieljharvey changed the title Djh/branching in linearity checking Branching in linearity checking Aug 19, 2024
@danieljharvey danieljharvey marked this pull request as ready for review August 19, 2024 16:30
@danieljharvey danieljharvey merged commit 5275112 into trunk Aug 19, 2024
3 checks passed
@danieljharvey danieljharvey deleted the djh/branching-in-linearity-checking branch August 19, 2024 16:31
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