gopls/internal/test/marker/testdata/diagnostics/issue59005.txt
raw| 1 | This test verifies that we don't drop type checking errors on the floor when we |
| 2 | fail to compute positions for their related errors. |
| 3 | |
| 4 | -- go.mod -- |
| 5 | module play.ground |
| 6 | |
| 7 | -- p.go -- |
| 8 | package p |
| 9 | |
| 10 | import ( |
| 11 | . "play.ground/foo" |
| 12 | ) |
| 13 | |
| 14 | const C = 1 //@diag("C", re"C already declared through dot-import") |
| 15 | var _ = C |
| 16 | |
| 17 | -- foo/foo.go -- |
| 18 | package foo |
| 19 | |
| 20 | const C = 2 |