mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
imakeOfStructMake does the right thing, but we never call it when the StructMake has more than one argument. Fixes #74908 Change-Id: Ib4b1a025bfb1fa69a325207e47b74bd6217092bf Reviewed-on: https://go-review.googlesource.com/c/go/+/693615 Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
25 lines
333 B
Go
25 lines
333 B
Go
// compile
|
|
|
|
// Copyright 2025 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
type Type struct {
|
|
any
|
|
}
|
|
|
|
type typeObject struct {
|
|
e struct{}
|
|
b *byte
|
|
}
|
|
|
|
func f(b *byte) Type {
|
|
return Type{
|
|
typeObject{
|
|
b: b,
|
|
},
|
|
}
|
|
|
|
}
|