We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gomacro> type N struct{n N} gomacro> n := N{n: N{}} reflect: call of reflect.Value.Type on zero Value gomacro> n <nil> // main.N gomacro>
https://play.golang.org/p/QxubPiPUpdU
The following illegal recursive type declaration is allowed, too: type N N
type N N
The type type N struct{n []N} works in both gomacro and go with same result.
type N struct{n []N}
The text was updated successfully, but these errors were encountered:
True, invalid recursive types should be detected earlier - ideally when the type is defined, not when it's used (and sometimes not even then)
Sorry, something went wrong.
cosmos72
No branches or pull requests
https://play.golang.org/p/QxubPiPUpdU
The following illegal recursive type declaration is allowed, too:
type N N
The type
type N struct{n []N}
works in both gomacro and go with same result.The text was updated successfully, but these errors were encountered: