-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: No error when using interface with typeset with variable #52139
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
What's the expected behavior here? I didn't think |
Spec says "Interfaces whose type sets can be defined entirely by a list of methods are called basic interfaces." So that suggests to me that it's intended that Related #52124. |
@mdempsky Correct. This interface is the same as |
Change https://go.dev/cl/398094 mentions this issue: |
Change-Id: I7da79d52d50d96536a8175ba08e9da551d07fadd Reviewed-on: https://go-review.googlesource.com/c/go/+/398094 Trust: Matthew Dempsky <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/L9p1kcNJs9O
What did you expect to see?
What did you see instead?
Compiled successfully.
The text was updated successfully, but these errors were encountered: