]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: add missing conversion from bool to interface in switches.
authorDaniel Morsing <daniel.morsing@gmail.com>
Mon, 17 Sep 2012 19:29:10 +0000 (21:29 +0200)
committerDaniel Morsing <daniel.morsing@gmail.com>
Mon, 17 Sep 2012 19:29:10 +0000 (21:29 +0200)
commit551e26382385a91cbe9cfc94b1327d29f030f254
treef7cd8275455917c0c4d8d76c56806b2b3db4c39c
parentc7631f555f880409fb13143d0d8236ad9fb99c2c
cmd/gc: add missing conversion from bool to interface in switches.

In switches without an expression, the compiler would not convert the implicit true to an interface, causing codegen errors.

Fixes #3980.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6497147
src/cmd/gc/swt.c
test/switch.go