github.com/HaHadaxigua/yaegi@v1.0.1/_test/composite5.go (about)

     1  package main
     2  
     3  import "fmt"
     4  
     5  type T struct {
     6  	m uint16
     7  }
     8  
     9  var t = T{1<<2 | 1<<3}
    10  
    11  func main() {
    12  	fmt.Println(t)
    13  }
    14  
    15  // Output:
    16  // {12}