blob: 420035d71bb5b26b5769de9f36eb4364b20722d3 [file] [log] [blame]
// compile
// Copyright 2020 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.
// Issue 39653.
package p
type E struct{}
type N[T any] struct {
i int
n T
}
func F1[T any](i int, n T) N[T] {
return N[T]{i: i, n: n}
}
func F2() {
F1(1, F1(2, F1(3, E{})))
}