| 1 |
package pkg |
| 2 |
|
| 3 |
type iface interface { //@ used("iface", false) |
| 4 |
foo() //@ quiet("foo") |
| 5 |
} |
| 6 |
|
| 7 |
type t1 struct{} //@ used("t1", false) |
| 8 |
func (t1) foo() {} //@ used("foo", false) |
| 9 |
|
| 10 |
type t2 struct{} //@ used("t2", true) |
| 11 |
|
| 12 |
func (t t2) bar(arg int) (ret int) { //@ quiet("t"), used("bar", false), quiet("arg"), quiet("ret") |
| 13 |
return 0 |
| 14 |
} |
| 15 |
|
| 16 |
func init() { //@ used("init", true) |
| 17 |
_ = t2{} |
| 18 |
} |
| 19 |
|
| 20 |
type t3 struct { //@ used("t3", false) |
| 21 |
a int //@ quiet("a") |
| 22 |
b int //@ quiet("b") |
| 23 |
} |
| 24 |
|
| 25 |
type T struct{} //@ used("T", true) |
| 26 |
|
| 27 |
func fn1() { //@ used("fn1", false) |
| 28 |
meh := func(arg T) { //@ quiet("meh"), quiet("arg") |
| 29 |
} |
| 30 |
meh(T{}) |
| 31 |
} |
| 32 |
|
| 33 |
type localityList []int //@ used("localityList", false) |
| 34 |
|
| 35 |
func (l *localityList) Fn1() {} //@ quiet("l"), used("Fn1", false) |
| 36 |
func (l *localityList) Fn2() {} //@ quiet("l"), used("Fn2", false) |