1
0
mirror of https://github.com/golang/go synced 2024-11-19 09:54:49 -07:00
go/refactor/eg/testdata/A2.golden
Alan Donovan 4744be3abc refactor/eg: use format.Node not printer.Fprint for canonical output
Fixes golang/go#10038

Change-Id: If3243f0c68fc0442dcc1e2dd71cbdc629beff70c
Reviewed-on: https://go-review.googlesource.com/6481
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2015-03-02 19:38:58 +00:00

16 lines
215 B
Plaintext

// +build ignore
package A2
// This refactoring causes addition of "errors" import.
// TODO(adonovan): fix: it should also remove "fmt".
import (
"errors"
myfmt "fmt"
)
func example(n int) {
errors.New("")
}