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
In case of recursive structures (type X includes Y and type Y includes X) by mistake I got panic in compiler instead of readable error. Minimal example to reproduce: https://play.golang.org/p/pvO3GSWnExA
So simple in this example, but hard to find such issue origin in big project without descriptive error.
What did you expect to see?
./1.go:7:6: invalid recursive type X
/home/1.go:7:6: X refers to
/home/1.go:12:6: Y refers to
/home/1.go:7:6: X
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?
In case of recursive structures (type X includes Y and type Y includes X) by mistake I got panic in compiler instead of readable error. Minimal example to reproduce:
https://play.golang.org/p/pvO3GSWnExA
So simple in this example, but hard to find such issue origin in big project without descriptive error.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: