| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "guthib.com/bar" // pkg name is actually quux |
| 5 | "guthib.com/baz" // pkg name is also quux |
| 6 | ) |
| 7 | |
| 8 | func main() { |
| 9 | println("Hello", quux.Quux()) |
| 10 | } |
| 11 | |
| 12 | // GOPATH:testdata/redeclaration-global7 |
| 13 | // Error: |
| 14 | // ../_test/redeclaration-global7.go:5:2: quux/redeclaration-global7.go redeclared as imported package name |