github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/composite2.gno (about) 1 package main 2 3 var a = &[]*T{{"hello"}} 4 5 type T struct{ name string } 6 7 func main() { 8 println(*((*a)[0])) 9 } 10 11 // Output: 12 // (struct{("hello" string)} main.T)