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

     1  //gofmt -r=int->bool
     2  
     3  // Copyright 2011 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package p
     8  
     9  // Slices have nil Len values in the corresponding ast.ArrayType
    10  // node and reflect.NewValue(slice.Len) is an invalid reflect.Value.
    11  // The rewriter must not crash in that case. Was issue 1696.
    12  func f() []int {}