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

cmd/compile: better error message for "..." related error #43674

Closed
griesemer opened this issue Jan 13, 2021 · 6 comments
Closed

cmd/compile: better error message for "..." related error #43674

griesemer opened this issue Jan 13, 2021 · 6 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

package p
func _(..., float32)

produces: "syntax error: final argument in variadic function missing type" . The ... is not with the final argument.

@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 13, 2021
@griesemer griesemer added this to the Go1.17 milestone Jan 13, 2021
@griesemer griesemer self-assigned this Jan 13, 2021
@Hallicopter
Copy link

Is this something that can be a good first issue? If so, where do you suggest I start?

I will reproduce this issue, and see what can be done in the meanwhile.

@griesemer
Copy link
Contributor Author

@Hallicopter Thanks for your interest but I prefer to fix this one myself. Thanks.

@Hallicopter
Copy link

Oh okay, cool, no problem.

@griesemer
Copy link
Contributor Author

@Hallicopter If you are looking for "starter issues" look at issued labeled "suggested". Thanks.

@gopherbot
Copy link

Change https://golang.org/cl/310209 mentions this issue: cmd/compile/internal/syntax: better error message for ... without type

@Hallicopter
Copy link

Thanks, @griesemer! Just wanted to contribute back to Go in some way since it has helped me so much.

@golang golang locked and limited conversation to collaborators Apr 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants