commit | 480477ca64c3001b9c7e92ef8b978dc92a5912d2 | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Tue Jul 23 02:03:08 2019 -0400 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Jul 23 17:20:06 2019 +0000 |
tree | b79f4ec2aacbc99678a97c19387e6a493d5def11 | |
parent | b7bce0dbccb978d33eb8ce0bffc02fae2c2857c1 [diff] |
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-on: https://go-review.googlesource.com/c/gofrontend/+/187177 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>