cmd/compile: type checks can be ineffective for slices as function arguments #16767
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.7 linux/amd64
go env
)?This builds and runs fine: https://play.golang.org/p/XPDlxvky-4
But this has compile errors: https://play.golang.org/p/XQ4SXHlJNR
Both cases should have compile errors, consistent with spec
What did you see instead?
foo
(type foo int
) is treated as a different fromint
, butbar
(type bar []byte
) is treated as the same type as[]byte
The text was updated successfully, but these errors were encountered: