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: (*Func).Pkg() returns nil for methods from GcImport'ed packages #5815

Closed
dominikh opened this issue Jun 30, 2013 · 2 comments
Closed

go/types: (*Func).Pkg() returns nil for methods from GcImport'ed packages #5815

dominikh opened this issue Jun 30, 2013 · 2 comments
Assignees

Comments

@dominikh
Copy link
Member

@dominikh dominikh commented Jun 30, 2013

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. http://play.golang.org/p/u4QW1mXVqS

What is the expected output?
No output

What do you see instead?
Pkg nil for &{{<nil> 0 <nil> Len 0xc210039ae0} <nil>}
Pkg nil for &{{<nil> 0 <nil> Read 0xc210039b10} <nil>}
Pkg nil for &{{<nil> 0 <nil> ReadAt 0xc210039b40} <nil>}
[...]

Please provide any additional information below.
This only happens when going through GcImport. When manually parsing files and using
Context.Check(), Pkg() returns correct values. It also only happens for methods, not for
functions.
@griesemer
Copy link
Contributor

@griesemer griesemer commented Jul 9, 2013

Comment 1:

Owner changed to @griesemer.

Status changed to Accepted.

Loading

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jul 29, 2013

Comment 2:

This issue was closed by revision golang/tools@90aa993.

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