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

     1  package pkg
     2  
     3  func fn() {
     4  	var s []int
     5  	_ = s[:len(s)] // MATCH /omit second index/
     6  
     7  	len := func(s []int) int { return -1 }
     8  	_ = s[:len(s)]
     9  }