]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] Handling multiple type arguments for call via new node OLIST
authorDan Scales <danscales@google.com>
Sun, 31 Jan 2021 05:15:40 +0000 (21:15 -0800)
committerDan Scales <danscales@google.com>
Tue, 2 Feb 2021 19:14:08 +0000 (19:14 +0000)
commit3d5c715bf299fb662104d70d612f3f0303e542d9
tree00a3f165808fd0f7c4d31ab69b15b13339a06a29
parent13a741298377d30fc2b3fc51fa9aa52eed6d56e4
[dev.typeparams] Handling multiple type arguments for call via new node OLIST

Will now run "go tool compile -G=2 -W=2" on a simple generic function
with multiple type parameters and a call to that function with multiple
explicit type arguments.

We will likely move to have a separate function/type instantiation node,
in order distinguish these cases from normal index expressions.

Change-Id: I0a571902d63785cc06240ed4ba0495923403b511
Reviewed-on: https://go-review.googlesource.com/c/go/+/288433
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/node_gen.go
src/cmd/compile/internal/ir/op_string.go
src/cmd/compile/internal/noder/expr.go
src/cmd/compile/internal/noder/helpers.go