Text file src/cmd/gofmt/testdata/rewrite10.golden

     1  //gofmt -r=a->a
     2  
     3  // Copyright 2019 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  // Issue 33103, 33104, and 33105.
     8  
     9  package pkg
    10  
    11  func fn() {
    12  	_ = func() {
    13  		switch {
    14  		default:
    15  		}
    16  	}
    17  	_ = func() string {}
    18  	_ = func() { var ptr *string; println(ptr) }
    19  }
    20  

View as plain text