]> Cypherpunks.ru repositories - gostls13.git/commitdiff
change in spec results in non-error
authorRob Pike <r@golang.org>
Mon, 6 Oct 2008 23:27:14 +0000 (16:27 -0700)
committerRob Pike <r@golang.org>
Mon, 6 Oct 2008 23:27:14 +0000 (16:27 -0700)
R=gri
DELTA=4  (0 added, 3 deleted, 1 changed)
OCL=16565
CL=16579

test/func3.go
test/golden.out

index 90773462691a8964896484a70057c66811e5d8ad..33e80a716cecf62002843b4affe6c9728d21b4d5 100644 (file)
@@ -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.
index b83de865dc7e2005b9088e7dd1a94ebd7258827c..2676fec63108959cac58dceb6cee31ca5863870c 100644 (file)
@@ -1,7 +1,4 @@
 
-=========== ./func3.go
-BUG: errchk: func3.go: missing expected error message on line 14: 'type'
-
 =========== ./helloworld.go
 hello, world