go/src/cmd
Michael Matloob 32f2f72c47 cmd/compile: provide better error when method called without receiver
When a method is called using the Type.Method(receiver, args...) syntax
without the receiver, or enough arguments, provide the more helpful
error message "not enough arguments in call to method expression
Type.Method" instead of the old message "not enough arguments in call
to Type.Method".

Fixes #8385

Change-Id: Id5037eb1ee5fa93687d4a6557b4a8233b29e9df2
Reviewed-on: https://go-review.googlesource.com/2193
Reviewed-by: Russ Cox <rsc@golang.org>
2015-06-18 19:37:38 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api go/importer: added go/importer package, adjusted go/types 2015-04-15 02:28:53 +00:00
asm all: fix misprints in comments 2015-06-11 14:18:57 +00:00
cgo cmd/cgo: make sure pointers passed to C escape to heap 2015-06-15 17:39:53 +00:00
compile cmd/compile: provide better error when method called without receiver 2015-06-18 19:37:38 +00:00
cover all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
dist cmd/dist: add new misc/cgo/testsovar test 2015-06-17 02:33:40 +00:00
doc cmd/doc: do not show unexported constants 2015-06-04 21:51:49 +00:00
fix all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
go cmd/go: suggest running 'go help gopath' with problematic GOPATH 2015-06-18 17:34:26 +00:00
gofmt cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
internal all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
link all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
newlink cmd/link: move to cmd/newlink 2015-05-21 17:31:40 +00:00
nm all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
objdump all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
old5a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
old6a cmd/internal/obj: make Prog.From3 a pointer 2015-05-29 16:19:02 +00:00
old8a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
old9a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
pack all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
pprof all: fix misprints in comments 2015-06-11 14:18:57 +00:00
trace cmd/trace: gracefully handle empty profiles 2015-06-18 14:46:49 +00:00
vet all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
yacc all: fix misprints in comments 2015-06-11 14:18:57 +00:00