github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/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 {}