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 For Issue #250 #251

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Fix For Issue #250 #251

merged 3 commits into from
Jul 4, 2024

Conversation

FedericoAureliano
Copy link
Contributor

When you have a function call and you try to take the head of the arguments list you may crash if the argument list is empty. The issue #250 boils down to just that. Instead of taking the head of the argument list, we wrap the correct type in a list and compare that with the argument list.

I am also adding an example that crashed before the change but correctly reports an error after the change. It is kind of silly so I am not adding it to the CI.

@polgreen
Copy link
Contributor

polgreen commented Jul 3, 2024

Can you add the test to the CI? I know it's silly but we may as well have it in there. I'll take a look at why the mac CI is failing, but it's nothing this PR has changed.

@FedericoAureliano
Copy link
Contributor Author

Added the test case to the CI. It should not crash and also it should not type check.

@polgreen polgreen merged commit 3f1a8b1 into master Jul 4, 2024
1 of 2 checks passed
@FedericoAureliano FedericoAureliano deleted the fix-250 branch July 17, 2024 20:18
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