aboutsummaryrefslogtreecommitdiff
path: root/test/switch3.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-24 11:48:19 +1100
committerRob Pike <r@golang.org>2012-02-24 11:48:19 +1100
commit80a9783f842ff5d14fd5e2e5d5a129635a081031 (patch)
tree1ee1d083efadeb7077c17d701a82c5d338f4c30c /test/switch3.go
parentc05c3a9d1180e6d449049d9ed96c46b65837bb29 (diff)
downloadgo-80a9783f842ff5d14fd5e2e5d5a129635a081031.tar.gz
go-80a9783f842ff5d14fd5e2e5d5a129635a081031.zip
test/[n-z]*.go: add documentation
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5700056
Diffstat (limited to 'test/switch3.go')
-rw-r--r--test/switch3.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/switch3.go b/test/switch3.go
index 404b62e391..dcb6fff208 100644
--- a/test/switch3.go
+++ b/test/switch3.go
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Verify that erroneous switch statements are detected by the compiler.
+// Does not compile.
+
package main
type I interface {