diff options
Diffstat (limited to 'test/fixedbugs/bug069.go')
-rw-r--r-- | test/fixedbugs/bug069.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fixedbugs/bug069.go b/test/fixedbugs/bug069.go index 950ba8e01..d6796cd72 100644 --- a/test/fixedbugs/bug069.go +++ b/test/fixedbugs/bug069.go @@ -9,10 +9,12 @@ package main func main(){ c := make(chan int); ok := false; - i := 0; + var i int; i, ok = <-c; // works + _, _ = i, ok; ca := new([2]chan int); i, ok = <-(ca[0]); // fails: c.go:11: bad shape across assignment - cr=1 cl=2 + _, _ = i, ok; } |