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
The compiler disagrees with the comment.
package main func f(x []T) *[]T { y := make([]T, len(x)) copy(y, x) return &y } type T struct { F func() } func create(x int) *[]T { return f([]T{ { F: func() { panic(x) }, // DOES ESCAPE }, }) } func main() { var x int z := create(1) println(&x, (*z)[0].F) (*z)[0].F() }
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/11460 mentions this issue.
Sorry, something went wrong.
6613090
No branches or pull requests
The compiler disagrees with the comment.
The text was updated successfully, but these errors were encountered: