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

Lua frontend. Main function argument doesn't match it definition. #267

Open
ryukzak opened this issue Jan 21, 2024 · 0 comments
Open

Lua frontend. Main function argument doesn't match it definition. #267

ryukzak opened this issue Jan 21, 2024 · 0 comments

Comments

@ryukzak
Copy link
Owner

ryukzak commented Jan 21, 2024

function sum(x1, x2)
     x1 = x1 + x2
     x2 = x2 + 3
     sum(x1, x2)
end
sum(1,2,3)

This algorithm should fail, because sum called with 3 args, but we expect only 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant