Debian Codegraph @

_test/struct43.go

raw symbols SCIP
1 package main
2
3 type T struct {
4 t func(*T)
5 y *xxx
6 }
7
8 func f(t *T) { println("in f") }
9
10 type xxx struct{}
11
12 func main() {
13 x := &T{}
14 x.t = f
15 println("ok")
16 }
17
18 // Output:
19 // ok