diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2026-03-24 20:42:23 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-25 13:06:06 -0700 |
| commit | 670038a5a53c19ab299179e62d72956a92248877 (patch) | |
| tree | 5d0413fcdfdbd3da20d36541385490ff1b5cd268 /src/database/sql | |
| parent | 26d8a902002a2b41bc4c302044110f2eae8d597f (diff) | |
| download | go-670038a5a53c19ab299179e62d72956a92248877.tar.xz | |
cmd/compile: preserve variadic signature on range-over-func
When rewriting range-over-func loops, copy the variadic bit from the
original function type into the synthesized body closure's type info.
This keeps the generated closure signature aligned with the source
function and avoids losing variadic-ness during rewrite.
Fixes #78314
Change-Id: I4b5f4628e8c8c14d4ff89dd6b996837264c5cb61
Reviewed-on: https://go-review.googlesource.com/c/go/+/758041
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jakub Ciolek <jakub@ciolek.dev>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
