Debian Codegraph @

_test/recurse3.go

raw symbols SCIP
1 package main
2
3 type F func(a *A)
4
5 type A struct {
6 B string
7 D
8 }
9
10 type D struct {
11 *A
12 E *A
13 f F
14 }
15
16 func f1(a *A) { println("in f1", a.B) }
17
18 func main() {
19 a := &A{B: "b"}
20 a.D = D{f: f1}
21 a.f(a)
22 }
23
24 // Output:
25 // in f1 b