Commit 6a5db20d authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: match gccgo error messages for bug345

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
parent 24c76f68
...@@ -22,7 +22,7 @@ func main() { ...@@ -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 // 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 var w io.Writer
bufio.NewWriter(w) // ERROR "test/io" bufio.NewWriter(w) // ERROR "test/io|has incompatible type"
var x goio.SectionReader var x goio.SectionReader
io.SR(&x) // ERROR "test/io" io.SR(&x) // ERROR "test/io|has incompatible type"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment