We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Commit 44d3f89 caused a regression in the reflect package where-by some of the fields of the reflect.Method would be nil or invalid.
Consider the following program:
type Foo interface{} type Bar struct{} func (s *Bar) getFoo() Foo { return nil } func main() { t := reflect.ValueOf(&Bar{}).Type() fmt.Println(t.Method(0)) }
On go1.6, this would print: {getFoo main func(*main.Bar) main.Foo <func(*main.Bar) main.Foo Value> 0}
go1.6
{getFoo main func(*main.Bar) main.Foo <func(*main.Bar) main.Foo Value> 0}
After 44d3f89, this would print: {getFoo main <nil> <invalid Value> 0}
{getFoo main <nil> <invalid Value> 0}
/cc @crawshaw @randall77 @ianlancetaylor
The text was updated successfully, but these errors were encountered:
@mdempsky
Sorry, something went wrong.
This looks like a duplicate of #15673.
No branches or pull requests
Commit 44d3f89 caused a regression in the reflect package where-by some of the fields of the reflect.Method would be nil or invalid.
Consider the following program:
On
go1.6
, this would print:{getFoo main func(*main.Bar) main.Foo <func(*main.Bar) main.Foo Value> 0}
After 44d3f89, this would print:
{getFoo main <nil> <invalid Value> 0}
/cc @crawshaw @randall77 @ianlancetaylor
The text was updated successfully, but these errors were encountered: