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

log funtion does not accept variable length arguments #83

Closed
ytoml opened this issue Aug 26, 2022 · 1 comment
Closed

log funtion does not accept variable length arguments #83

ytoml opened this issue Aug 26, 2022 · 1 comment
Labels
bug Something isn't working bug-compiler bug-inference Type inference bugs

Comments

@ytoml
Copy link
Contributor

ytoml commented Aug 26, 2022

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.

@ytoml ytoml added the bug Something isn't working label Aug 26, 2022
@mtshiba mtshiba added bug-compiler bug-inference Type inference bugs labels Aug 26, 2022
@mtshiba
Copy link
Member

mtshiba commented Aug 30, 2022

Fixed in #94.

@mtshiba mtshiba closed this as completed Aug 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 bug-compiler bug-inference Type inference bugs
Projects
None yet
Development

No branches or pull requests

2 participants