Skip to content

Commit 952df4b

Browse files
committed
gopls/internal/lsp: add go to implementation support for function types
Improve test. Fixes #56572
1 parent 3eadaa4 commit 952df4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopls/internal/lsp/testdata/implementation/implementation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type StructWithFunctionFields struct {
4545
FT FunctionType //implementations("FT", ImplementationOfFunctionType1, ImplementationOfFunctionType2)
4646
}
4747

48-
func (s StructWithFunctionFields) struct {
48+
func (s StructWithFunctionFields) Test() {
4949
s.FT("s", 0) //implementations("FT", ImplementationOfFunctionType1, ImplementationOfFunctionType2)
5050
}
5151

0 commit comments

Comments
 (0)