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
It sounds like this is behaving as intended by the documentation. See also #8241:
Infinite recursion can also be triggered by self-referential data structures, such as a slice that contains itself as an element, if that type has a String method. Such pathologies are rare, however, and the package does not protect against them.
I'm going to close this as working as intended. Please let me know if I am mistaken.
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?
What did you expect to see?
map[abc:<recursive lookup &0xc0000140d8>]
or something like this
What did you see instead?
panic after stack overflow
go run main.go
OutputThe text was updated successfully, but these errors were encountered: