diff options
Diffstat (limited to 'gcc/testsuite/go.test/test/fixedbugs/bug243.go')
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug243.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug243.go b/gcc/testsuite/go.test/test/fixedbugs/bug243.go index 95514cfd650..e3ddf0e7745 100644 --- a/gcc/testsuite/go.test/test/fixedbugs/bug243.go +++ b/gcc/testsuite/go.test/test/fixedbugs/bug243.go @@ -6,7 +6,7 @@ package main -import "os" +import "errors" // Issue 481: closures and var declarations // with multiple variables assigned from one @@ -22,7 +22,7 @@ func main() { } }() - var conn, _ = Dial("tcp", "", listen.Addr().String()) + var conn, _ = Dial("tcp", "", listen.Addr().Error()) _ = conn } @@ -37,8 +37,8 @@ func Listen(x, y string) (T, string) { return global, y } -func (t T) Addr() os.Error { - return os.NewError("stringer") +func (t T) Addr() error { + return errors.New("stringer") } func (t T) Accept() (int, string) { |