diff options
| author | Robert Griesemer <gri@google.com> | 2026-03-11 19:02:07 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-17 13:47:05 -0700 |
| commit | a6949e942c4287fcccf3264b8df6190c88609cb7 (patch) | |
| tree | fc670d128bd7b9dd260e3ba5cd2618e80cd41dfc /src/runtime | |
| parent | e0ebb4c646ade3ab83708d1772bce452398888b3 (diff) | |
| download | go-a6949e942c4287fcccf3264b8df6190c88609cb7.tar.xz | |
go/types, types2: handle unconstrained type parameters correctly in a few places
When iterating over a type set via a range clause, am unconstrained
type set produces a single (nil, nil) result. This was not properly
accounted for in a few places:
- In the code for the append and copy built-in, handle the (nil, nil)
case.
- Likewise, in NewSignatureType, panic with the correct (string) error
in this case.
Check all remaining places where we iterate over type sets with range
for correctness.
Fixes #78163.
Change-Id: If0f33f43dad59b4b5ef4c310f80522c25c6e251f
Reviewed-on: https://go-review.googlesource.com/c/go/+/755941
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
