-
Notifications
You must be signed in to change notification settings - Fork 18k
go/types: types.Named.SetUnderlying: underlying type must not be *Named #15920
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
Labels
Milestone
Comments
For what it's worth, this worked with Go 1.6, so this would be a regression in 1.7. |
Small repro case.
b.go:
Then compile and typecheck:
|
CL https://golang.org/cl/23606 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Run
go get github.com/sclasen/swfsm/fsm
and then rungotype
on this source:Resulting panic:
Issue originally reported by @dpiddy as mdempsky/gocode#14.
/cc @griesemer
The text was updated successfully, but these errors were encountered: