Debian Codegraph @

_test/struct44.go

raw symbols SCIP
1 package main
2
3 type Ti func(*T) X
4
5 type T1 struct {
6 t Ti
7 }
8
9 type T struct {
10 t Ti
11 y *xxx
12 }
13
14 func f(t *T) X { println("in f"); return X{} }
15
16 type X struct{ Name string }
17
18 type xxx struct{}
19
20 var x = &T1{t: f}
21
22 func main() {
23 println("ok")
24 }
25
26 // Output:
27 // ok