mirror of
https://github.com/golang/go
synced 2024-11-07 15:26:11 -07:00
3d667671ad
Fixes #47948 Change-Id: I446a9548265d195ae4d88aff6b1361474d1b6214 Reviewed-on: https://go-review.googlesource.com/c/go/+/344910 Trust: Alexander Rakoczy <alex@golang.org> Trust: Dan Scales <danscales@google.com> Run-TryBot: Alexander Rakoczy <alex@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com>
19 lines
277 B
Go
19 lines
277 B
Go
// compile -G=3
|
|
|
|
// Copyright 2021 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 fun func()
|
|
|
|
func F[T any]() {
|
|
_ = fun(func() {
|
|
|
|
})
|
|
}
|
|
func main() {
|
|
F[int]()
|
|
}
|