Debian Codegraph @

apidiff/testdata/whole.go

raw symbols SCIP
1 package p
2
3 // Whole-package interface satisfaction
4
5 // old
6 type WI1 interface {
7 M1()
8 m1()
9 }
10
11 type WI2 interface {
12 M2()
13 m2()
14 }
15
16 type WS1 int
17
18 func (WS1) M1() {}
19 func (WS1) m1() {}
20
21 type WS2 int
22
23 func (WS2) M2() {}
24 func (WS2) m2() {}
25
26 // new
27 type WI1 interface {
28 M1()
29 m()
30 }
31
32 type WS1 int
33
34 func (WS1) M1() {}
35
36 // i WS1: no longer implements WI1
37 //func (WS1) m1() {}
38
39 type WI2 interface {
40 M2()
41 m2()
42 // i WS2: no longer implements WI2
43 m3()
44 }
45
46 type WS2 int
47
48 func (WS2) M2() {}
49 func (WS2) m2() {}