github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/unused/testdata/src/elem/elem.go (about)

     1  // Test of field usage detection
     2  
     3  package pkg
     4  
     5  type t15 struct{ f151 int }
     6  type a2 [1]t15
     7  
     8  type t16 struct{}
     9  type a3 [1][1]t16
    10  
    11  func foo() {
    12  	_ = a2{0: {1}}
    13  	_ = a3{{{}}}
    14  }
    15  
    16  func init() { foo() }