]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: improve not enough / too many arguments errors
authorMatthew Dempsky <mdempsky@google.com>
Fri, 28 Oct 2016 21:22:13 +0000 (14:22 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 28 Oct 2016 21:53:07 +0000 (21:53 +0000)
commitec5b6406b76462a1a97ce19f86c5c23ac1d2c830
tree6b063e530cd400634e5f67e25375a18a012f88c1
parent1bd39e79dbc146ae953284f82febf7d1fb461f4e
cmd/compile: improve not enough / too many arguments errors

Use "have" and "want" and multiple lines like other similar error
messages. Also, fix handling of ... and multi-value function calls.

Fixes #17650.

Change-Id: I4850e79c080eac8df3b92a4accf9e470dff63c9a
Reviewed-on: https://go-review.googlesource.com/32261
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/ddd1.go
test/fixedbugs/issue4215.go
test/fixedbugs/issue6750.go