]> Cypherpunks repositories - gostls13.git/commit
go/types: implement copy for generic argument types
authorRobert Griesemer <gri@golang.org>
Thu, 7 Oct 2021 02:38:15 +0000 (19:38 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 7 Oct 2021 03:41:40 +0000 (03:41 +0000)
commit6f74ed06c5b0e1d69fb70e89f31f002f18554c79
tree3afff824d3842b4a51781cf21bd5869a945929d5
parent39bbf08e7139d0e041b0633945a42d0621d2897e
go/types: implement copy for generic argument types

This is a port of CL 354432 from types2 to go/types
with minor adjustments:
- an error message has a different position
- the constraint literals are wrapped in interfaces
  because the interface-free notation has not been
  ported yet

Change-Id: I167094b57b39027566f2b7ce3aa97a071bae4da5
Reviewed-on: https://go-review.googlesource.com/c/go/+/354489
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/types/builtins.go
src/go/types/testdata/check/builtins.go2