gopls/internal/test/marker/testdata/quickfix/stubmethods/basic_resolve.txt
raw| 1 | This test exercises basic 'stub methods' functionality, with resolve support. |
| 2 | See basic.txt for the same test without resolve support. |
| 3 | |
| 4 | -- go.mod -- |
| 5 | module example.com |
| 6 | go 1.12 |
| 7 | |
| 8 | -- a/a.go -- |
| 9 | package a |
| 10 | |
| 11 | type C int |
| 12 | |
| 13 | var _ error = C(0) //@quickfix(re"C.0.", re"missing method Error", stub) |
| 14 | -- @stub/a/a.go -- |
| 15 | @@ -5 +5,5 @@ |
| 16 | +// Error implements [error]. |
| 17 | +func (c C) Error() string { |
| 18 | + panic("unimplemented") |
| 19 | +} |
| 20 | + |