-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: different results from runtime.Caller #67668
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
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Comments
go playground https://go.dev/play/p/NtxAspZ03df |
CC @golang/compiler |
Looks relating to inline, with the //go:noinline
func (testObj) Fn1() error {
return func() error {
return Wrap(errTest)
}()
}
func (testObj) Fn2() error {
return func() error {
return Wrap(errors.New("test"))
}()
} |
This looks like a duplicate of #60324. |
Closing as duplicate of #60324. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go1.21.3
Output of
go env
in your module/workspace:What did you do?
Short example for playground:
What did you see happen?
different results:
What did you expect to see?
same results
The text was updated successfully, but these errors were encountered: