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

go/types: missing error for incorrect [...]array #45651

Closed
griesemer opened this issue Apr 20, 2021 · 2 comments
Closed

go/types: missing error for incorrect [...]array #45651

griesemer opened this issue Apr 20, 2021 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@griesemer
Copy link
Contributor

There appears to be no error for:

package p
var _ = [...]byte("foo")

See also #42987.

@griesemer griesemer added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker labels Apr 20, 2021
@griesemer griesemer added this to the Go1.17 milestone Apr 20, 2021
@findleyr
Copy link
Contributor

findleyr commented Apr 20, 2021

I do see an error for this exact source:

> go test -run=Fixedbugs/45651.src
--- FAIL: TestFixedbugs (0.00s)
    --- FAIL: TestFixedbugs/issue45651.src (0.00s)
        check_test.go:187: fixedbugs/issue45651.src:2:10: no error expected: "expected array length, found '...'"
> cat fixedbugs/issue45651.src 
package p
var _ = [...]byte("foo")

@griesemer
Copy link
Contributor Author

My apologies. Tests are run a bit differently with go/types than types2. Confirmed that the error is reported.

@golang golang locked and limited conversation to collaborators Apr 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Projects
None yet
Development

No branches or pull requests

3 participants