]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: reject type switch with guarded declaration and no cases
authorMatthew Dempsky <mdempsky@google.com>
Tue, 13 Mar 2018 21:26:45 +0000 (14:26 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 13 Mar 2018 22:02:46 +0000 (22:02 +0000)
commite601c079082658399445c2698f7e5cb60d23db29
tree5c9d404a306db747b953506a52cb684e031f2573
parent363bcd7b4f628f140f7942f2610a15ed142aa82d
cmd/compile: reject type switch with guarded declaration and no cases

Fixes #23116.

Change-Id: I5db5c5c39bbb50148ffa18c9393b045f255f80a3
Reviewed-on: https://go-review.googlesource.com/100459
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/swt.go
test/fixedbugs/issue23116.go [new file with mode: 0644]