Debian Codegraph @

_test/struct4.go

raw symbols SCIP
1 package main
2
3 type T3 struct {
4 k int
5 }
6
7 type T2 struct {
8 h int
9 T3
10 }
11
12 type T struct {
13 f int
14 g int
15 T2
16 }
17
18 func f(i int) int { return i * i }
19
20 func main() {
21 a := T{5, 7, T2{f(8), T3{9}}}
22 println(a.f, a.g, a.h, a.k)
23 }
24
25 // Output:
26 // 5 7 64 9