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

     1  package main
     2  
     3  type H struct {
     4  	bits uint
     5  }
     6  
     7  func main() {
     8  	h := &H{8}
     9  	var x uint = (1 << h.bits) >> 6
    10  
    11  	println(x)
    12  }
    13  
    14  // Output:
    15  // 4