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

Keyword arguments don't work properly #255

Closed
mtshiba opened this issue Nov 27, 2022 · 0 comments · Fixed by #264 or #268
Closed

Keyword arguments don't work properly #255

mtshiba opened this issue Nov 27, 2022 · 0 comments · Fixed by #264 or #268
Labels
bug Something isn't working

Comments

@mtshiba
Copy link
Member

mtshiba commented Nov 27, 2022

Describe the bug?

...

Reproducible code

add x: Int, y: Int = x + y

print! add(y:=1, x:=2)

Expected result

3

Actual result

Error[#1020]: File test.er, line 22, <module>

22 | print! add(y:=1, x:=2)
   :        ---

missing 2 positional argument(s) for ::add(: (x: Int, y: Int) -> Int)
missing: x, y

Additional context

No response

Erg version

0.5.13

Python version

No response

OS

No response

@mtshiba mtshiba added the bug Something isn't working label Nov 27, 2022
mtshiba added a commit that referenced this issue Nov 29, 2022
@mtshiba mtshiba mentioned this issue Nov 29, 2022
mtshiba added a commit that referenced this issue Nov 29, 2022
mtshiba added a commit that referenced this issue Nov 29, 2022
@mtshiba mtshiba mentioned this issue Nov 29, 2022
mtshiba added a commit that referenced this issue Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant