Skip to content

Fixes for ... in macroexp #940

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

Merged
merged 3 commits into from
Apr 7, 2025
Merged

Conversation

mbartlett21
Copy link
Contributor

Fixes #939

This does a couple of things. First, it adds '...' to the elements that get iterated over, so it warns when there is multiple use of varargs. It then codegens ... as the leftover arguments.

Copy link

Teal Playground URL: https://940--teal-playground-preview.netlify.app

@mbartlett21 mbartlett21 changed the title Check multiple use of ... in macroexp Fixes for ... in macroexp Mar 21, 2025
@hishamhm hishamhm merged commit c2f4e7b into teal-language:master Apr 7, 2025
8 checks passed
@hishamhm
Copy link
Member

hishamhm commented Apr 7, 2025

@mbartlett21 Thank you, looks great!!

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.

macroexp and ...
2 participants