gopls/internal/test/marker/testdata/completion/issue79325.txt
raw| 1 | This test checks that the blank identifier `_` is not suggested as a completion candidate for struct fields. |
| 2 | |
| 3 | -- flags -- |
| 4 | -ignore_extra_diags |
| 5 | -- issue79325.go -- |
| 6 | package p |
| 7 | |
| 8 | type foo struct { |
| 9 | bar uint8 |
| 10 | _ [2]byte |
| 11 | } |
| 12 | |
| 13 | func (f foo) _() bool { |
| 14 | return f. //@rank(re"() \\/", "bar", "!_") |
| 15 | } |