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
Invalid recursive type allowed #98
Labels
Comments
True, invalid recursive types should be detected earlier - ideally when the type is defined, not when it's used (and sometimes not even then) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: