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
$ gotip test .
vet: ./foo_test.go:6:18: cannot convert s (variable of type parameter T constrained by ~string) to string
FAIL experiments.example [build failed]
FAIL
The compiler does accept it, as can be seen when running with -vet=off:
$ gotip test -vet=off .
ok experiments.example 0.256s
What did you expect to see?
No vet error.
What did you see instead?
cannot convert s (variable of type parameter T constrained by ~string) to string
The text was updated successfully, but these errors were encountered:
griesemer
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Oct 27, 2021
What version of Go are you using (
go version
)?Latest gotip:
Does this issue reproduce with the latest release?
Yes, tried with latest gotip.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Contents of
foo_test.go
:This fails on a
go vet
check:The compiler does accept it, as can be seen when running with
-vet=off
:What did you expect to see?
No vet error.
What did you see instead?
The text was updated successfully, but these errors were encountered: