mirror of
https://github.com/golang/go
synced 2024-11-19 03:24:40 -07:00
c93f28baaa
The satisfy package has a precondition for Finder.Find that requires that the package has no type errors. If this is a check that we would perform, give an error and do not rename. Fixes golang/go#32882 Change-Id: Id44b451bf86ff883fd78a6306f2b2565ad3bdeb9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/184857 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
9 lines
117 B
Go
9 lines
117 B
Go
package bad
|
|
|
|
type myStruct struct {
|
|
}
|
|
|
|
func (s *myStruct) sFunc() bool { //@rename("sFunc", "rFunc")
|
|
return s.Bad
|
|
}
|