summaryrefslogtreecommitdiff
path: root/test/func1.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-07-08 12:22:21 -0700
committerRob Pike <r@golang.org>2008-07-08 12:22:21 -0700
commit317756ffc773b42be493079a66cbe1e3694521e6 (patch)
tree9c82175e9d591f7613f8ce319c943d88d7960994 /test/func1.go
parent15fb8aa10a824f36187d0b7874c765b797373d8b (diff)
downloadgolang-317756ffc773b42be493079a66cbe1e3694521e6.tar.gz
test update. also remove two duplicates
SVN=126336
Diffstat (limited to 'test/func1.go')
-rw-r--r--test/func1.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/func1.go b/test/func1.go
index 2f92c35b7..895fe94b8 100644
--- a/test/func1.go
+++ b/test/func1.go
@@ -4,13 +4,15 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// does not compile and should not compile
+
package main
-func f1(a int) (int, float) { // BUG multiple return values must have names
+func f1(a int) (int, float) { // BUG (not caught by compiler): multiple return values must have names
return 7, 7.0;
}
-func f2(a int) (a int, b float) { // BUG return value names must be different from parameter names
+func f2(a int) (a int, b float) { // return value names must be different from parameter names
return 8, 8.0;
}