]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: avoid an internal error on invalid type switch.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 12 Jul 2012 21:31:36 +0000 (23:31 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 12 Jul 2012 21:31:36 +0000 (23:31 +0200)
commit1ca7bc268bd78551cd668df9a45b36769cd0172d
tree7559377871a82eb59e9fffca5cd81a33240aefe1
parentbd0bb2bc3995e91daf92e0fbb9550f207d940e3a
cmd/gc: avoid an internal error on invalid type switch.

The error was caused by a call to implements() even when
the type switch variable was not an interface.

Fixes #3786.

R=golang-dev, r
CC=golang-dev, remy
https://golang.org/cl/6354102
src/cmd/gc/swt.c