]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: add support for `any` param and return type
authorAlexandre Daubois <alex.daubois@gmail.com>
Mon, 24 Nov 2025 08:14:18 +0000 (08:14 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 24 Nov 2025 19:58:55 +0000 (11:58 -0800)
commita593ca9d657efb1ea021c9fc51cb528c398bbf4e
treeb3625254161b0607c0fa9fdfaeee681a52d70361
parent89552911b383b78cd8807ec747ca5df8ba52e239
runtime/cgo: add support for `any` param and return type

When using `any` as param or return type of an exported
function, we currently have the error `unrecognized Go
type any`. `any` is an alias of `interface{}` which is
already supported.

This would avoid such change: https://github.com/php/frankenphp/pull/1976

Fixes #76340

Change-Id: I301838ff72e99ae78b035a8eff2405f6a145ed1a
GitHub-Last-Rev: 7dfbccfa582bbc6e79ed29677391b9ae81a9b5bd
GitHub-Pull-Request: golang/go#76325
Reviewed-on: https://go-review.googlesource.com/c/go/+/720960
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/cgo/gcc.go
src/cmd/cgo/internal/test/cgo_test.go
src/cmd/cgo/internal/test/test.go
src/cmd/cgo/internal/test/testx.go
src/cmd/cgo/out.go
src/runtime/cgocall.go