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

`log` funtion does not accept variable length arguments #83

Closed ytoml closed 2 years ago

ytoml commented 2 years ago

Describe the bug log syntax/04_function.md

Reproducible code

Erg interpreter 0.2.8 (tags/?:, 2022/08/25 23:56:48) on aarch64/macos

>>> log "Hello"
Hello
None

>>> log "Hello", "World"
Error[#1549]: File <stdin>, line 1, in <module>
1│ log "Hello", "World"

   ^^^
TypeError: too many arguments for log:
total expected params:  1
passed positional args: 2
passed keyword args:    0

Expected behavior Expected that it printsHello World.

mtshiba commented 2 years ago

Fixed in https://github.com/erg-lang/erg/pull/94.