compiler: use correct value type in 2-case select send

In the channel-send case, the value to be sent may needs an
(implicit) type conversion to the channel element type. This CL
ensures that we use the correct value type for the send.

Fixes golang/go#33235.

Change-Id: I565147a617ed8a1337d2c8251d98a6779f2812c7
Reviewed-by: Than McIntosh <>
Reviewed-by: Ian Lance Taylor <>
1 file changed