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

Update typing rule for cons #549

Merged
merged 1 commit into from
May 20, 2024
Merged

Update typing rule for cons #549

merged 1 commit into from
May 20, 2024

Conversation

Alasdair
Copy link
Collaborator

Ensure that x :: y :: [||] is always checked the same as [|x, y|]. Previously this was not the case as the list literal would consider all elements simultaneously in some cases, whereas the cons would only look at the head and tail. This meant that checking the list against an existentially quantified type could require extra annotations.

Ensure that (x :: y :: [||]) is always checked the same as [|x, y|].
Previously this was not the case as the list literal would consider
all elements simultaneously in some cases, whereas the cons would
only look at the head and tail.
Copy link

github-actions bot commented May 20, 2024

Test Results

    9 files  ±0     20 suites  ±0   0s ⏱️ ±0s
  635 tests +2    635 ✅ +2  0 💤 ±0  0 ❌ ±0 
2 034 runs  +5  2 033 ✅ +5  1 💤 ±0  0 ❌ ±0 

Results for commit 507ac9f. ± Comparison against base commit 63a4f46.

♻️ This comment has been updated with latest results.

@Alasdair Alasdair merged commit ac06d86 into sail2 May 20, 2024
9 checks passed
@Alasdair Alasdair deleted the ex_list_infer branch May 20, 2024 23:40
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