Debian Codegraph @

_test/struct61.go

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