misc/cgo/errors: err2.go test is broken and erroneously passing #46534
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
This test for #26745 is intended to check that the error messages are reported at columns 13 and 6 on these lines, respectively:
go/misc/cgo/errors/testdata/err2.go
Lines 92 to 98 in dd7ba3b
But that's not where we're reporting those errors:
It appears the test is currently passing simply because ":13" and ":6" appear elsewhere in the output.
I ran into this because types2 reports the line 94 and 97 diagnostics at columns 10 and 8 (!?) respectively, but then reports the "not enough arguments" error at column 6 instead, causing the ":13" match to start failing.
/cc @ianlancetaylor @iamoryanmoshe
The text was updated successfully, but these errors were encountered: