compiler: use correct assignment order for type assertions
authorIan Lance Taylor <iant@golang.org>
Sun, 29 Nov 2020 02:47:42 +0000 (18:47 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 30 Nov 2020 20:10:26 +0000 (12:10 -0800)
commitc7f272e05e1cf8c7d7caefe5ee542845cf4cc7c8
tree4e0c0ac7ef80f00d23e04e1b35c53052f80446af
parent8d8fea8a57068a0c5f0c1df766679a25f4272481
compiler: use correct assignment order for type assertions

For "a, b := v.(T)" we must set a before b.

For golang/go#13433

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273906
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/statements.cc