You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a better error message, but to clarify go:linkname does actually define a new symbol, hence the message. The error overall is expected.
Since go:linkname is meant for internal low-level use-cases, we're inclined to close this issue.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, go1.20, go1.21, tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Go playground link: https://go.dev/play/p/TzmdH78MJj-
What did you expect to see?
Address of
k
What did you see instead?
./prog.go:14:5: <unknown line number>: symbol main.k redeclared
The text was updated successfully, but these errors were encountered: