Debian Codegraph @

gopls/internal/test/marker/testdata/diagnostics/issue67360.txt

raw
1 Regression test for #67360.
2
3 This file causes go list to report a "use of internal package
4 cmd/internal/browser" error. (It is important that this be a real
5 internal std package.) The line directive caused the position of the
6 error to lack a column. A bug in the error parser filled in 0, not 1,
7 for the missing information, and this is an invalid value in the
8 1-based UTF-8 domain, leading to a panic.
9
10 -- foo.go --
11 //line foo.go:1
12 package main //@ diag(re"package", re"internal package.*not allowed")
13 import _ "cmd/internal/browser" //@ diag(re`"`, re"could not import")