summaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-02-01 23:27:33 -0800
committerIan Lance Taylor <iant@golang.org>2010-02-01 23:27:33 -0800
commit8bbfc07daf8b0ecf6b5729b4ab0e89c1f8111506 (patch)
tree6dc41bd1fc37c0f0741d56435b6537c36558d981 /test/fixedbugs
parentb02b31586ae4f8d70ad0d04be98c586eda278b1f (diff)
downloadgo-8bbfc07daf8b0ecf6b5729b4ab0e89c1f8111506.tar.gz
Match gccgo error messages.
bug249.go:10:5: error: incompatible type in initialization bug249.go:26:5: error: incompatible type in initialization R=rsc CC=golang-dev http://codereview.appspot.com/198058
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/bug249.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixedbugs/bug249.go b/test/fixedbugs/bug249.go
index b88a44429..c85708fd8 100644
--- a/test/fixedbugs/bug249.go
+++ b/test/fixedbugs/bug249.go
@@ -7,7 +7,7 @@
package main
var c1 chan <- chan int = (chan<- (chan int))(nil)
-var c2 chan <- chan int = (chan (<-chan int))(nil) // ERROR "chan"
+var c2 chan <- chan int = (chan (<-chan int))(nil) // ERROR "chan|incompatible"
var c3 <- chan chan int = (<-chan (chan int))(nil)
var c4 chan chan <- int = (chan (chan<- int))(nil)
@@ -23,7 +23,7 @@ var c12 chan chan <- <- chan int = (chan (chan<- (<-chan int)))(nil)
var c13 chan chan <- chan <- int = (chan (chan<- (chan<- int)))(nil)
var r1 chan<- (chan int) = (chan <- chan int)(nil)
-var r2 chan (<-chan int) = (chan <- chan int)(nil) // ERROR "chan"
+var r2 chan (<-chan int) = (chan <- chan int)(nil) // ERROR "chan|incompatible"
var r3 <-chan (chan int) = (<- chan chan int)(nil)
var r4 chan (chan<- int) = (chan chan <- int)(nil)