You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'go test' doesn't reject some x -> x_test references.
As a result, a package may pass its tests yet not build.
% cat b/b.go
package b
var Y = X
% cat b/b_test.go
package b
var X = 0
% go test b
ok b 0.016s
% go build b
b/b.go:2: undefined: X
The text was updated successfully, but these errors were encountered:
It seems pretty unlikely that this will be detected without special casing it in the
compiler, which at the moment knows nothing about the x_test.go magic, and since it is
caught as soon as you run 'go build' it's not a high priority issue.
Marking WontFix; please reopen if you have a compelling counterargument.
The text was updated successfully, but these errors were encountered: