gitee.com/mirrors/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/staticcheck/testdata/synthetic.go (about)

     1  package pkg
     2  
     3  import "regexp"
     4  
     5  // must be a basic type to trigger SA4017 (in case of a test failure)
     6  type T string
     7  
     8  func (T) Fn() {}
     9  
    10  // Don't get confused by methods named init
    11  func (T) init() {}
    12  
    13  // this will become a synthetic init function, that we don't want to
    14  // ignore
    15  var _ = regexp.MustCompile("(") // MATCH /error parsing regexp/