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

Bugs when passing string literal into multi-parameter function call #41

Closed
RayhanHamada opened this issue Apr 22, 2022 · 1 comment · Fixed by #42
Closed

Bugs when passing string literal into multi-parameter function call #41

RayhanHamada opened this issue Apr 22, 2022 · 1 comment · Fixed by #42

Comments

@RayhanHamada
Copy link
Contributor

Currently i encounter some bugs when passing string literal into multi-parameter function call

Suppose we have a function that takes 3 parameters

so about fungsiMultiParam a b c
    spill "a: " + a
    spill "b: " + b
    spill "c: " + c
thats it sih

When fungsiMultiParam called like

call fungsiMultiParam "hello" 4 5

It outputs

a: hello
b: undefined // should be 4
c: undefined // should be 5

Or when i switch the position like such

call fungsiMultiParam 3 "hello" 5

It outputs

a: 3
b: undefined
c: undefined

It seems that only parse the first argument.
Function with only one parameter works fine with string literal.

@RayhanHamada
Copy link
Contributor Author

RayhanHamada commented Apr 22, 2022

gonna make PR for this asap.

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

Successfully merging a pull request may close this issue.

1 participant