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

Add support for max arguments in a function #2610

Closed
darkdrag00nv2 opened this issue Jun 26, 2023 · 1 comment
Closed

Add support for max arguments in a function #2610

darkdrag00nv2 opened this issue Jun 26, 2023 · 1 comment
Assignees

Comments

@darkdrag00nv2
Copy link
Contributor

Issue to be solved

Right now, we don't have any support to limit the maximum number of arguments in variadic functions.

For example in assert(_: Bool, message: String), I can pass assert(10 == 10, message: "abc", "EXTRA ARGUMENT") and the checker doesn't catch it.

Suggested Solution

It would nice to be able to limit the number of arguments as well.

@SupunS
Copy link
Member

SupunS commented Jul 18, 2023

Added with #2656

@SupunS SupunS closed this as completed Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants