-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go2go: panic if using a method on undefined type #39672
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
Thanks. The type-checker is happy with this, but the translator is not. Edited: The problem is the missing method body. |
This looks like the same bug as #39634 (comment) which is caused by the method not having a body (the top frame in the stack trace is |
Indeed. It has nothing to do with the receiver, it's that the method doesn't have a body. Will be fixed in the translator. |
Change https://golang.org/cl/238761 mentions this issue: |
Thanks. Fixed on the dev.go2go branch. |
Fixes #39672 Change-Id: Ia9fa4e7d5090200d7c2b4f654ac7ee42d7d79732 Reviewed-on: https://go-review.googlesource.com/c/go/+/238761 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Follow up on #39664
Did a git pull, but still find a way to let it panic by accident, I was trying to correct Robert version so it would compile but failed to do so.
The text was updated successfully, but these errors were encountered: