gopls/internal/test/marker/testdata/diagnostics/issue71812.txt
raw| 1 | This input causes the unreachable analyzer to report a diagnostic |
| 2 | about the var decl statement. Since the computed End pos of |
| 3 | ast.StructType is beyond EOF, validation of SuggestedFixes fails. |
| 4 | This used to trigger an assertion in gopls' analysis driver. |
| 5 | |
| 6 | See golang/go#71659 (and also #71812). |
| 7 | |
| 8 | -- flags -- |
| 9 | -ignore_extra_diags |
| 10 | |
| 11 | -- go.mod -- |
| 12 | module example.com |
| 13 | go 1.18 |
| 14 | |
| 15 | -- a/a.go -- |
| 16 | package a |
| 17 | func _() { return; var x struct{ |