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?
to your account
The program main.go:
causes a crash for types2 with go test -run Check$ -files main.go.
go test -run Check$ -files main.go
The problem is that the syntax parser returns nil *syntax.ImportDecl values when the import path is missing; and those nil values are added to decl lists even though they should be ignored.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/278114 mentions this issue: [dev.typeparams] cmd/compile/internal/types2: don't crash if import path is missing
[dev.typeparams] cmd/compile/internal/types2: don't crash if import path is missing
Sorry, something went wrong.
Successfully merging a pull request may close this issue.