summaryrefslogtreecommitdiffstats
path: root/src/cmd/gofmt/testdata/rewrite10.golden
blob: 1dd781fbb094457b6304cddc08ae3814d468216d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//gofmt -r=a->a

// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 33103, 33104, and 33105.

package pkg

func fn() {
	_ = func() {
		switch {
		default:
		}
	}
	_ = func() string {}
	_ = func() { var ptr *string; println(ptr) }
}