gopls/internal/test/marker/testdata/fixedbugs/issue71044.txt
raw| 1 | This test checks that we don't crash while completing receivers that may happen |
| 2 | to be builtin types (due to invalid code). This crash was reported by telemetry |
| 3 | in golang/go#71044. |
| 4 | |
| 5 | -- flags -- |
| 6 | -ignore_extra_diags |
| 7 | |
| 8 | -- go.mod -- |
| 9 | module example.com/amap |
| 10 | |
| 11 | go 1.18 |
| 12 | |
| 13 | -- a.go -- |
| 14 | package amap |
| 15 | |
| 16 | import "unsafe" |
| 17 | |
| 18 | func (unsafe.Pointer) _() {} //@ rank(re"()unsafe") |