github.com/c0deoo1/golang1.5@v0.0.0-20220525150107-c87c805d4593/src/cmd/gofmt/testdata/rewrite2.golden (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() []bool {}