erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Keyword arguments don't work properly #255

Closed mtshiba closed 1 year ago

mtshiba commented 1 year ago

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