]> Cypherpunks repositories - gostls13.git/commit
gc: better error for method non-call
authorRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 08:42:44 +0000 (04:42 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 08:42:44 +0000 (04:42 -0400)
commit2a7019894a444120e374196db5d170aa8722ce7c
treeec97a25dd49672a0ee9bedbdf6601e3c207731ce
parent410927d1adeadbe8de72769bd794064f0cd801cd
gc: better error for method non-call

was
x.go:7: must call (&b).*Buffer·Write

now
x.go:7: method b.Write is not an expression, must be called

Fixes #1171.

R=ken2
CC=golang-dev
https://golang.org/cl/2384042
src/cmd/gc/go.h
src/cmd/gc/print.c
src/cmd/gc/typecheck.c