]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: don't panic if targs don't match tparams when substituting
authorRobert Griesemer <gri@golang.org>
Wed, 22 Sep 2021 20:38:05 +0000 (13:38 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 22 Sep 2021 20:53:48 +0000 (20:53 +0000)
commit41bb7446dcc5179047512aa10c5e6d01eb870b54
treed7d07de6dc3afc6c91952b71bb8cbeab9028dab1
parent5b75a9b2c3078ab2ef8398c47be5b30ea02c03d3
cmd/compile/internal/types2: don't panic if targs don't match tparams when substituting

This is a clean port of CL 351337 from go/types to types2.

Change-Id: I974bf79fcc1ec0016c38e4c0b361d05f7b44e649
Reviewed-on: https://go-review.googlesource.com/c/go/+/351466
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue46461.go2 [new file with mode: 0644]
src/cmd/compile/internal/types2/testdata/fixedbugs/issue48529.go2 [new file with mode: 0644]