cmd/gc: fix spurious type errors in walkselect.
The lowering to runtime calls introduces hidden pointers to the arguments of select clauses. When implicit conversions were involved it could end up with incompatible pointers. Since the pointed-to types have the same representation, we can introduce a forced conversion. Fixes #6847. LGTM=rsc R=rsc, iant, khr CC=golang-codereviews https://golang.org/cl/72380043
Showing
test/fixedbugs/issue6847.go
0 → 100644
Please
register
or
sign in
to comment