| 1 |
This test exercises basic 'stub methods' functionality. |
| 2 |
See basic_resolve.txt for the same test with resolve support. |
| 3 |
|
| 4 |
-- capabilities.json -- |
| 5 |
{ |
| 6 |
"textDocument": { |
| 7 |
"codeAction": { |
| 8 |
"dataSupport": false, |
| 9 |
"resolveSupport": {} |
| 10 |
} |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
-- go.mod -- |
| 15 |
module example.com |
| 16 |
go 1.12 |
| 17 |
|
| 18 |
-- a/a.go -- |
| 19 |
package a |
| 20 |
|
| 21 |
type C int |
| 22 |
|
| 23 |
var _ error = C(0) //@quickfix(re"C.0.", re"missing method Error", stub) |
| 24 |
-- @stub/a/a.go -- |
| 25 |
@@ -5 +5,5 @@ |
| 26 |
+// Error implements [error]. |
| 27 |
+func (c C) Error() string { |
| 28 |
+ panic("unimplemented") |
| 29 |
+} |
| 30 |
+ |