-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go2go: newtype of constraint causes endless recursion #40037
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
Comments
Hi @tdakkota, thanks for filing this. There is some chance what you found is similar to Crash 22 in #39634 (comment). Crash 22 there also seemed to be endless recursion, and comparing the partial trace you posted here with the call stack there, they both seem to follow a similar pattern of: go/types.(*instance).expand-> instantiate -> TypeParam -> Under -> Named -> expand -> instantiate -> ... That said, I'm not sure if they are the same underlying problem, and I think you are more likely than me to know whether or not they are the same. ;-) cc @griesemer |
This comment has been minimized.
This comment has been minimized.
…pe declarations. Updates golang#39634. Fixes golang#40037.
Change https://golang.org/cl/241037 mentions this issue: |
This was fixed in the type checkers with the above CL. For
the reported error is now:
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?What did you do?
https://go2goplay.golang.org/p/mSgtHY8Dv7v
What did you expect to see?
Successful compilation or error like
What did you see instead?
Partial stack trace:
The text was updated successfully, but these errors were encountered: