]> Cypherpunks repositories - gostls13.git/commit
gc: fix error for 1 <- "foo"
authorRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 07:33:42 +0000 (03:33 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 07:33:42 +0000 (03:33 -0400)
commit42c26b734cf8cf148cf08ae30bf1e05a29bc8851
treecbcacb2589ddd8b3f3ec0a6ca510f3ff4f433e43
parent62355959c6b56f90f2b83f4a766598d734d8785f
gc: fix error for 1 <- "foo"

was
x.go:4: invalid operation: 1 <- "foo" (send to receive-only type int)

now
x.go:4: invalid operation: 1 <- "foo" (send to non-chan type int)

R=ken2
CC=golang-dev
https://golang.org/cl/2330042
src/cmd/gc/typecheck.c