]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug345
authorIan Lance Taylor <iant@golang.org>
Wed, 18 Jan 2012 02:00:34 +0000 (18:00 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Jan 2012 02:00:34 +0000 (18:00 -0800)
bug345.dir/main.go:25:18: error: argument 1 has incompatible type (need explicit conversion; missing method ‘Write’)
bug345.dir/main.go:27:8: error: argument 1 has incompatible type

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5556043

test/fixedbugs/bug345.dir/main.go

index 5bdc713f4e0b0e12c5e0b7b644502d7900b858f4..ddba8dad40ade8d4404d91fda3d8fce3f4faba97 100644 (file)
@@ -22,7 +22,7 @@ func main() {
        // main.go:27: cannot use &x (type *"io".SectionReader) as type *"/Users/rsc/g/go/test/fixedbugs/bug345.dir/io".SectionReader in function argument
 
        var w io.Writer
-       bufio.NewWriter(w)  // ERROR "test/io"
+       bufio.NewWriter(w)  // ERROR "test/io|has incompatible type"
        var x goio.SectionReader
-       io.SR(&x)  // ERROR "test/io"
+       io.SR(&x)  // ERROR "test/io|has incompatible type"
 }