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

go/types: no error reported for duplicate names in same package, if in separate files #5506

Closed
adonovan opened this issue May 17, 2013 · 1 comment
Assignees

Comments

@adonovan
Copy link
Contributor

@adonovan adonovan commented May 17, 2013

% cat a.go
package main
func A() {}

% cat b.go
package main
func A() {}

func B() {}
func B() {}

% go run src/code.google.com/p/go.exp/ssa/ssadump.go -- a.go b.go
2013/05/17 16:02:54 b.go:6:6: B redeclared in this block
        previous declaration at b.go:5:6


An error is reported for B but not for A, despite duplicate definitions.
@griesemer
Copy link
Contributor

@griesemer griesemer commented May 20, 2013

Comment 1:

This issue was closed by revision golang/tools@08ee298.

Status changed to Fixed.

Loading

@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants