| 1 |
This test checks the quick fix for "undeclared: f" that declares the |
| 2 |
missing function. See #47558. |
| 3 |
|
| 4 |
-- a.go -- |
| 5 |
package a |
| 6 |
|
| 7 |
func _() int { return f(1, "") } //@quickfix(re"f.1", re"unde(fined|clared name): f", x) |
| 8 |
|
| 9 |
-- @x/a.go -- |
| 10 |
@@ -3 +3 @@ |
| 11 |
-func _() int { return f(1, "") } //@quickfix(re"f.1", re"unde(fined|clared name): f", x) |
| 12 |
+func _() int { return f(1, "") } |
| 13 |
@@ -5 +5,4 @@ |
| 14 |
+func f(i int, s string) int { |
| 15 |
+ panic("unimplemented") |
| 16 |
+} //@quickfix(re"f.1", re"unde(fined|clared name): f", x) |
| 17 |
+ |