cmd/go: wrong signature
error when using a type alias for *testing.T
#62454
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Seems you can't alias
testing.T
, it confusesgo test
. Confuses Go Playground too.What did you do?
https://go.dev/play/p/21W7rITsLUb
What did you expect to see?
Test results
What did you see instead?
wrong signature for TestLastIndex, must be: func TestLastIndex(t *testing.T)
The text was updated successfully, but these errors were encountered: