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
Assignees
Milestone

Comments

@dvyukov
Copy link
Member

@dvyukov 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 dvyukov commented Mar 14, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.