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

call ellipsis by command style failed #1644

Closed
visualfc opened this issue Jan 19, 2024 · 0 comments
Closed

call ellipsis by command style failed #1644

visualfc opened this issue Jan 19, 2024 · 0 comments
Labels

Comments

@visualfc
Copy link
Member

The following program sample.gop triggers an unexpected result

// add a sample
func test(s ...string) {
}
a := ["1","2","3"]
test(a...)
test a... // smart format `test(a...)` =>` test a...`

Expected result

pass

Got

main.gop:5:11: expected ';', found 'EOF'

Gop Version

main version

Additional Notes

smart format test(a...) => test a...

@xushiwei xushiwei added the bug label Jan 19, 2024
xushiwei added a commit that referenced this issue Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants