| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "guthib.com/bar" // pkg name is actually quux |
| 5 | baz "guthib.com/baz" // pkg name is also quux, force it to baz. |
| 6 | ) |
| 7 | |
| 8 | func main() { |
| 9 | println("Hello", quux.Quux()) |
| 10 | println("Hello", baz.Quux()) |
| 11 | } |
| 12 | |
| 13 | // GOPATH:testdata/redeclaration-global7 |
| 14 | // Output: |
| 15 | // Hello bar |
| 16 | // Hello baz |