Debian Codegraph @

gopls/internal/test/marker/testdata/quickfix/stubmethods/genericmethods.txt

raw
1 Test of stubmethods on generic methods, which do not participate
2 in interface satisfaction.
3
4 -- flags --
5 -min_go=go1.27
6
7 -- go.mod --
8 module example.com
9 go 1.27
10
11 -- a/a.go --
12 package a
13
14 type C int
15 func (C) F[T any]() {}
16
17 type I interface { F() }
18
19 var _ I = C(0) //@ quickfixerr(re"C.0.", re"does not implement", "method C.F already exists but has the wrong type: got func[T any](), want func()")