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/cover: syntax error near GoCover_0 #10163

Closed
dvyukov opened this issue Mar 14, 2015 · 1 comment
Closed

cmd/cover: syntax error near GoCover_0 #10163

dvyukov opened this issue Mar 14, 2015 · 1 comment
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Mar 14, 2015

Source code is:

$ cat pkg/pkg.go

package pkg
func foo() {
    switch i := (interface{})(nil); i.(type) {
    }
}

$ cat pkg/pkg_test.go

package pkg

Compilation fails with the following error message:

$ go test -c -cover pkg
# pkg
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build695841649/pkg/_test/_obj_test/pkg.go:6: syntax error near GoCover_0
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build695841649/pkg/_test/_obj_test/pkg.go:8: syntax error near 1
@dvyukov dvyukov added this to the Go1.5 milestone Mar 14, 2015
@dvyukov
Copy link
Member Author

dvyukov commented Mar 14, 2015

@alandonovan

@golang golang locked and limited conversation to collaborators Jun 25, 2016
@rsc rsc unassigned robpike Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants