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
runtime: FuncForPC().Name() returns autogenerated inline func name instead of func name when Func with generics #52809
Comments
cc @golang/runtime |
There is only so much that can Similar situations occur without generics. For example:
prints
If you're trying to introspect a function closure without calling it, then unfortunately
reports
|
Change https://go.dev/cl/416455 mentions this issue: |
FWIW, at tip, the test program https://go.dev/play/p/DNXU3SaUlSK?v=gotip now prints:
This is because of the switch to GOEXPERIMENT=unified. |
(Misclicked.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/DNXU3SaUlSK
What did you expect to see?
At least should be, as call stacks did
What did you see instead?
The text was updated successfully, but these errors were encountered: