Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

original package identifier still in scope even when import specifies a different name #403

Closed
rogpeppe opened this issue Dec 9, 2009 · 3 comments

Comments

@rogpeppe
Copy link
Contributor

rogpeppe commented Dec 9, 2009

the attached file gives the following compiler error:

pkgbug.go:4: fmt redeclared in this block
    previous declaration at <epoch>

i would expect it to work ok.

darwin, 386, 8cc3a6f7ad37+ tip

Attachments:

  1. importbug.go (73 bytes)
@agl
Copy link
Contributor

agl commented Dec 9, 2009

Comment 1:

Labels changed: added compilerbug.

Status changed to Accepted.

@agl
Copy link
Contributor

agl commented Dec 9, 2009

Comment 2:

Just pasting in the attachment, since it's tiny:
package main
import p "fmt"
var fmt = 10
func main()     { p.Print(fmt) }

@rsc
Copy link
Contributor

rsc commented Dec 16, 2009

Comment 3:

This issue was closed by revision c715b58.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants