github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct45.gno (about) 1 package main 2 3 type T struct { 4 b bool 5 } 6 7 type T1 struct { 8 T 9 } 10 11 func main() { 12 t := &T1{} 13 t.b = true 14 println(t.b) 15 } 16 17 // Output: 18 // true