]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: simplify Checker.funcInst
authorRobert Griesemer <gri@golang.org>
Wed, 31 Mar 2021 05:07:26 +0000 (22:07 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 18:59:08 +0000 (18:59 +0000)
commit3a30381b2110f15de85514609965b7cafd90aec0
tree2c298ee9dba09987d66d59373ba759122d589a96
parent93466cc1b697836200e73bb103522324d38e894f
cmd/compile/internal/types2: simplify Checker.funcInst

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

While at it, also fix a minor position error for type
instantiations (now matching the code for function
instantiations).

Change-Id: I20eca51c5b06259703767b5906e89197d6cd595a
Reviewed-on: https://go-review.googlesource.com/c/go/+/306169
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/typexpr.go