mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
030b2cf115
Change-Id: Ifd9dd5684c8467442cb551a72b4d35ae6faed599 Reviewed-on: https://go-review.googlesource.com/c/tools/+/197158 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
19 lines
259 B
Plaintext
19 lines
259 B
Plaintext
-- bar-rename --
|
|
package testy
|
|
|
|
type tt int //@rename("tt", "testyType")
|
|
|
|
func a() {
|
|
bar := 42 //@rename("foo", "bar")
|
|
}
|
|
|
|
-- testyType-rename --
|
|
package testy
|
|
|
|
type testyType int //@rename("tt", "testyType")
|
|
|
|
func a() {
|
|
foo := 42 //@rename("foo", "bar")
|
|
}
|
|
|