github.com/sbinet/go@v0.0.0-20160827155028-54d7de7dd62b/src/cmd/gofmt/testdata/ranges.input (about)

     1  //gofmt -s
     2  
     3  // Test cases for range simplification.
     4  package p
     5  
     6  func _() {
     7  	for a, b = range x {}
     8  	for a, _ = range x {}
     9  	for _, b = range x {}
    10  	for _, _ = range x {}
    11  
    12  	for a = range x {}
    13  	for _ = range x {}
    14  
    15  	for a, b := range x {}
    16  	for a, _ := range x {}
    17  	for _, b := range x {}
    18  
    19  	for a := range x {}
    20  }