mirror of
https://github.com/golang/go
synced 2025-07-05 20:23:00 +00:00
The compiler is incorrectly rejecting switches on arrays of comparable types. It also doesn't catch incomparable structs when typechecking the switch, leading to unreadable errors during typechecking of the generated code. Fixes #3894. R=rsc CC=gobot, golang-dev, r, remy https://golang.org/cl/6442074
1.2 KiB
1.2 KiB