]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: simplify Checker.Call
authorRobert Griesemer <gri@golang.org>
Wed, 31 Mar 2021 06:12:48 +0000 (23:12 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 19:00:26 +0000 (19:00 +0000)
commitd6a90d06d2883c6ae4bbd9bff2aafc338cc8f339
treebf9f448214756774a485055936768a4b8118f64b
parent3a30381b2110f15de85514609965b7cafd90aec0
cmd/compile/internal/types2: simplify Checker.Call

Now that we use square brackets for instantiations, we
can tell type arguments from ordinary arguments without
"guessing" which permits a simpler implementation.

Specifically, replace use of Checker.exprOrTypeList with
Checker.exprList, and delete Checker.exprOrTypeList and
Checker.multiExprOrType.

Disable a test for an (esoteric) failure due to an
unrelated problem with error matching when running
the test.

Change-Id: I17f18fffc32f03fa90d93a68ebf56e5f2fcc9dab
Reviewed-on: https://go-review.googlesource.com/c/go/+/306171
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/fixedbugs/issue39634.go2