]> Cypherpunks.ru repositories - gostls13.git/commit
spec: describe processing of function arguments for type inference more precisely
authorRobert Griesemer <gri@golang.org>
Fri, 11 Feb 2022 04:10:33 +0000 (20:10 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 11 Feb 2022 05:11:58 +0000 (05:11 +0000)
commite50f0f372b07149e9cf16b8fec80d2d72efe2a87
treee890d705dc5b62bc60fb2ff0516d7d6b975b4f65
parent9fdcfb7c10b464ffab815892f5fc77d68ed35714
spec: describe processing of function arguments for type inference more precisely

The outcome of type inference depends critically on when function
argument type inference stops processing arguments. Describe this
and explain an example with some detail.

Also: In the section on the built-in function delete, refer to the
value rather than the type of the second argument, as it may be an
untyped constant.

Change-Id: Ice7fbb33f985afe082380b8d37eaf763238a3818
Reviewed-on: https://go-review.googlesource.com/c/go/+/385034
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html