cmd/go: coverpkg=all
fails when dot imports .
are present
#23432
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?go1.10beta2
Does this issue reproduce with the latest release?
With
go1.9.2
it works fine:What operating system and processor architecture are you using (
go env
)?What did you do?
Created
main.go
:Ran test with
-coverpkg=all
What did you expect to see?
Should have no errors, same as when
-coverpkg=all
is not specified:What did you see instead?
-coverpkg=all
seems to be adding variablesGoCover_0
to the current package as well as the.
imported"fmt"
package. That causes the current package to not compile becauseGoCover_0
is redeclared in this package.The text was updated successfully, but these errors were encountered: