github.com/switchupcb/yaegi@v0.10.2/_test/composite6.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/switchupcb/yaegi/_test/ct1"
     7  )
     8  
     9  type T struct {
    10  	m uint16
    11  }
    12  
    13  var t = T{1 << ct1.R}
    14  
    15  func main() {
    16  	fmt.Println(t)
    17  }
    18  
    19  // Output:
    20  // {2}