blob: 8e5df81f6dc3c94209e1ef8090a27b1343769ccf [file] [log] [blame]
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08001// compile -G=3
2
Dan Willemsencc753b72021-08-31 13:25:42 -07003// Copyright 2021 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Dan Willemsencc753b72021-08-31 13:25:42 -07007package main
8
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08009type fun func()
10
11func F[T any]() {
12 _ = fun(func() {
13
14 })
15}
16func main() {
17 F[int]()
Dan Willemsencc753b72021-08-31 13:25:42 -070018}