aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/testdata/check/tmp.go2
blob: dae78caff81914807a11eb2aeb34cc26c48ee3f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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.

// This file is meant as "dumping ground" for debugging code.

package p

// fun test case
type C[P interface{m()}] P

func (r C[P]) m() { r.m() }

func f[T interface{m(); n()}](x T) {
	y := C[T](x)
	y.m()
}