golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/suggestedfix/undeclaredfunc.txt (about) 1 This test checks the quick fix for "undeclared: f" that declares the 2 missing function. See #47558. 3 4 TODO(adonovan): infer the result variables from the context (int, in this case). 5 6 -- a.go -- 7 package a 8 9 func _() int { return f(1, "") } //@suggestedfix(re"f.1", re"unde(fined|clared name): f", x) 10 11 -- @x/a.go -- 12 @@ -3 +3 @@ 13 -func _() int { return f(1, "") } //@suggestedfix(re"f.1", re"unde(fined|clared name): f", x) 14 +func _() int { return f(1, "") } 15 @@ -5 +5,4 @@ 16 +func f(i int, s string) { 17 + panic("unimplemented") 18 +} //@suggestedfix(re"f.1", re"unde(fined|clared name): f", x) 19 +