diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /test/func3.go | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'test/func3.go')
-rw-r--r-- | test/func3.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/func3.go b/test/func3.go index 33e80a716..110b0ef1c 100644 --- a/test/func3.go +++ b/test/func3.go @@ -6,12 +6,12 @@ package main -type t1 int; -type t2 int; -type t3 int; +type t1 int +type t2 int +type t3 int -func f1(*t2, x t3); // ERROR "named" -func f2(t1, *t2, x t3); // ERROR "named" -func f3() (x int, *string); // ERROR "named" +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); // legal - scope of parameter named t1 starts in body of f4. +func f4() (t1 t1) // legal - scope of parameter named t1 starts in body of f4. |