summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug175.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-07-27 16:59:10 -0700
committerRuss Cox <rsc@golang.org>2009-07-27 16:59:10 -0700
commit6ec3db342455b8f38a00af9dfa57b4bde0c5d8c8 (patch)
tree4f995f8b33a81c2002e0e1c3c7b69cf3614f0c92 /test/fixedbugs/bug175.go
parent4dd3e6e22f4a0cdbd0ca115dbcca58ed30a00232 (diff)
downloadgolang-6ec3db342455b8f38a00af9dfa57b4bde0c5d8c8.tar.gz
multiple return in := bug
R=ken OCL=32253 CL=32253
Diffstat (limited to 'test/fixedbugs/bug175.go')
-rw-r--r--test/fixedbugs/bug175.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixedbugs/bug175.go b/test/fixedbugs/bug175.go
new file mode 100644
index 000000000..a8f6e3ca4
--- /dev/null
+++ b/test/fixedbugs/bug175.go
@@ -0,0 +1,14 @@
+// errchk $G $D/$F.go
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func f() (int, bool) { return 0, true }
+
+func main() {
+ x, y := f(), 2; // ERROR "multi"
+}
+