1
0
mirror of https://github.com/golang/go synced 2024-10-05 03:11:22 -06:00
go/src
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
..
archive all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
bufio
builtin
bytes bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
cmd cmd/compile: provide better error when method called without receiver 2015-06-18 19:37:38 +00:00
compress compress/lzw: be consistent with error message prefixes. 2015-06-18 05:31:38 +00:00
container
crypto all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
database/sql database/sql: refer correct issue in TestErrBadConnReconnect comment 2015-06-06 02:17:49 +00:00
debug all: fix misprints in comments 2015-06-11 14:18:57 +00:00
encoding xml: add check of version in document declaration 2015-06-18 18:06:01 +00:00
errors
expvar expvar: swap Float sync. from mutex to atomic. 2015-04-12 23:07:50 +00:00
flag flag: Describe the ErrorHandling enum values. 2015-06-05 13:53:26 +00:00
fmt fmt: scanning widths apply after leading spaces 2015-06-13 04:33:26 +00:00
go all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
hash hash/crc32: speedup crc32 of IEEE using slicingBy8 2015-06-18 18:14:24 +00:00
html html/template: prevent panic when escaping actions involving chain nodes 2015-06-01 20:52:04 +00:00
image all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
index/suffixarray
internal all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
io io: minor improvements to doc comment on WriteString. 2015-05-29 04:33:15 +00:00
log log: fix flaky test 2015-06-18 18:08:17 +00:00
math math/big: incorporate feedback by josharian (Example_fibonacci) 2015-06-17 20:29:35 +00:00
mime mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
net net: fix build on android 2015-06-18 00:45:12 +00:00
os os: skip TestHostname on Plan 9 2015-06-16 22:07:01 +00:00
path path: fix a typo in documentation of Split 2015-05-31 22:08:38 +00:00
reflect runtime: use type-based write barrier for remote stack write during chansend 2015-06-15 16:50:30 +00:00
regexp regexp: small correction to test comment 2015-06-14 17:09:13 +00:00
runtime all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
sort
strconv strconv: minor internal comment fix 2015-05-27 22:02:02 +00:00
strings strings: mention UTF-8 in the package comment. 2015-06-03 19:28:41 +00:00
sync all: use RET instead of RETURN on ppc64 2015-06-06 00:07:23 +00:00
syscall all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
testing testing: don't print CPU count for tests, only benchmarks 2015-06-15 18:11:06 +00:00
text all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
time time: correct unrepresentable Unix time comment 2015-06-18 18:21:59 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: clean up stale GOROOT 2015-05-25 20:53:26 +00:00
bootstrap.bash
buildall.bash buildall.bash: exit 1 when make.bash fails 2015-05-17 01:40:33 +00:00
clean.bash build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.bat build: fix clean scripts 2015-06-18 16:13:13 +00:00
clean.rc build: fix clean scripts 2015-06-18 16:13:13 +00:00
iostest.bash iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
make.bat doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
Make.dist
make.rc doc: replace references to {5..9}{g,l} with go tool compile and go tool link 2015-06-17 04:05:50 +00:00
nacltest.bash nacltest.bash: remove syscall/fstest_nacl.go after test 2015-05-02 02:48:32 +00:00
race.bash cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
race.bat cmd/dist: move guts of race.bash into dist 2015-06-09 05:22:37 +00:00
run.bash build: correct quoting of args in run.bash 2015-05-09 04:23:47 +00:00
run.bat
run.rc