diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
| commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
| tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /test/fixedbugs/bug331.go | |
| parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
| download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz | |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
Diffstat (limited to 'test/fixedbugs/bug331.go')
| -rw-r--r-- | test/fixedbugs/bug331.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/fixedbugs/bug331.go b/test/fixedbugs/bug331.go index 28aee1da0..6c5acd1f4 100644 --- a/test/fixedbugs/bug331.go +++ b/test/fixedbugs/bug331.go @@ -6,22 +6,22 @@ package main -import "os" +import "io" -func f() (_ string, x float64, err os.Error) { +func f() (_ string, x float64, err error) { return } -func g() (_ string, x float64, err os.Error) { - return "hello", 3.14, os.EOF +func g() (_ string, x float64, err error) { + return "hello", 3.14, io.EOF } -var _ func() (string, float64, os.Error) = f -var _ func() (string, float64, os.Error) = g +var _ func() (string, float64, error) = f +var _ func() (string, float64, error) = g func main() { x, y, z := g() - if x != "hello" || y != 3.14 || z != os.EOF { + if x != "hello" || y != 3.14 || z != io.EOF { println("wrong", x, len(x), y, z) } } |
