github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct40.gno (about)

     1  package main
     2  
     3  type T struct {
     4  	t *T1
     5  	y *xxx
     6  }
     7  
     8  type T1 struct {
     9  	T
    10  }
    11  
    12  func f(t *T) { println("in f") }
    13  
    14  var x = &T1{}
    15  
    16  type xxx struct{}
    17  
    18  func main() {
    19  	println("ok")
    20  }
    21  
    22  // Output:
    23  // ok