gopls/internal/test/marker/testdata/highlight/issue68918.txt
raw| 1 | Regression test for https://github.com/golang/go/issues/68918: |
| 2 | crash due to missing type information in CompositeLit. |
| 3 | |
| 4 | The corresponding go/types fix in Go 1.24 introduces a |
| 5 | new error message, hence the -ignore_extra_diags flag. |
| 6 | |
| 7 | -- flags -- |
| 8 | -ignore_extra_diags |
| 9 | |
| 10 | -- a.go -- |
| 11 | package a |
| 12 | |
| 13 | var _ = T{{ x }} //@hiloc(x, "x", text), diag("T", re"undefined"), diag("{ ", re"missing type") |
| 14 | |
| 15 | //@highlight(x, x) |