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

Clarity-Wasm: throw for arg name already used in function definition #5168

Conversation

matteojug
Copy link

Throw when defining a function with repeated arg name. Tested with stacks-network/clarity-wasm#510.

Copy link
Contributor

@Acaccia Acaccia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we want to change the type checker to fail on an already used argument. The typechecker doesn't have issues with it in the interpreter. I would just make a change in the compiler here.

@matteojug
Copy link
Author

Closed as per discussion on stacks-network/clarity-wasm#510.

@matteojug matteojug closed this Sep 13, 2024
@matteojug matteojug deleted the fix/clarity-throw-already-used-arg branch September 13, 2024 09:35
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants