blob: f376cf1d29a20a5f0a3a0f87222735c58dca15fa [file] [log] [blame]
This test renames a parameter var whose name is the same as a
package-level var, which revealed a bug in isLocal.
This is a regression test for issue #61294.
-- go.mod --
module example.com
go 1.18
-- a/a.go --
package a
func One()
func Two(One int) //@rename("One", "Three", OneToThree)
-- b/b.go --
package b
import _ "example.com/a"
-- @OneToThree/a/a.go --
@@ -5 +5 @@
-func Two(One int) //@rename("One", "Three", OneToThree)
+func Two(Three int) //@rename("One", "Three", OneToThree)