github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/composite6.gno (about) 1 package main 2 3 import ( 4 "github.com/gnolang/gno/_test/ct1" 5 ) 6 7 type T struct { 8 m uint16 9 } 10 11 var t = T{1 << ct1.R} 12 13 func main() { 14 println(t) 15 } 16 17 // Output: 18 // (struct{(2 uint16)} main.T)