summaryrefslogtreecommitdiff
path: root/test/func3.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-10-06 16:27:14 -0700
committerRob Pike <r@golang.org>2008-10-06 16:27:14 -0700
commit717de79976f2b8675cbba4dea01b092a351ecbe7 (patch)
treef8b9a52280829d8a3c650337c9c28e1429db4409 /test/func3.go
parent1b257b2bb3359c7bfd3c396e9ec16c067a3a1635 (diff)
downloadgo-git-717de79976f2b8675cbba4dea01b092a351ecbe7.tar.gz
change in spec results in non-error
R=gri DELTA=4 (0 added, 3 deleted, 1 changed) OCL=16565 CL=16579
Diffstat (limited to 'test/func3.go')
-rw-r--r--test/func3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/func3.go b/test/func3.go
index 9077346269..33e80a716c 100644
--- a/test/func3.go
+++ b/test/func3.go
@@ -14,4 +14,4 @@ func f1(*t2, x t3); // ERROR "named"
func f2(t1, *t2, x t3); // ERROR "named"
func f3() (x int, *string); // ERROR "named"
-func f4() (t1 t1); // ERROR "type"
+func f4() (t1 t1); // legal - scope of parameter named t1 starts in body of f4.