mirror of
https://github.com/golang/go
synced 2024-11-25 03:57:56 -07:00
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 https://golang.org/cl/198058
This commit is contained in:
parent
674458e1c4
commit
d00210f519
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user