cmd/go2go: design corner cases when passing interface type arguments #39961
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
This code compiles https://go2goplay.golang.org/p/-5nF8t38Ebr - it's incorrect.
But this code does not compile https://go2goplay.golang.org/p/MdJl77uLB-g.
What did you expect to see?
Compilation error in both cases.
type interface{}
can't satisfyinterface {Method();}
What did you see instead?
Successful compilation.
The text was updated successfully, but these errors were encountered: