mirror of
https://github.com/golang/go
synced 2024-11-18 18:34:40 -07:00
4744be3abc
Fixes golang/go#10038 Change-Id: If3243f0c68fc0442dcc1e2dd71cbdc629beff70c Reviewed-on: https://go-review.googlesource.com/6481 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
16 lines
215 B
Plaintext
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("")
|
|
}
|