mirror of
https://github.com/golang/go
synced 2025-06-13 17:21:47 +00:00
cmd/compile, go/types: add missing space in error message
Otherwise "print(nil)" gets an error like use of untyped nil in argument to built-inprint Change-Id: Iaa841df106f90787031dce75a49af69860a9dbc9 Reviewed-on: https://go-review.googlesource.com/c/go/+/611918 Commit-Queue: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Gopher Robot
parent
9deda35ff8
commit
ec67622d04
src
@ -641,7 +641,7 @@ func (check *Checker) builtin(x *operand, call *syntax.CallExpr, id builtinId) (
|
||||
if nargs > 0 {
|
||||
params = make([]Type, nargs)
|
||||
for i, a := range args {
|
||||
check.assignment(a, nil, "argument to built-in"+predeclaredFuncs[id].name)
|
||||
check.assignment(a, nil, "argument to built-in "+predeclaredFuncs[id].name)
|
||||
if a.mode == invalid {
|
||||
return
|
||||
}
|
||||
|
@ -644,7 +644,7 @@ func (check *Checker) builtin(x *operand, call *ast.CallExpr, id builtinId) (_ b
|
||||
if nargs > 0 {
|
||||
params = make([]Type, nargs)
|
||||
for i, a := range args {
|
||||
check.assignment(a, nil, "argument to built-in"+predeclaredFuncs[id].name)
|
||||
check.assignment(a, nil, "argument to built-in "+predeclaredFuncs[id].name)
|
||||
if a.mode == invalid {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user