1// Copyright 2020 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// This file is meant as "dumping ground" for debugging code.
6
7package p
8
9// fun test case
10type C[P interface{m()}] P
11
12func (r C[P]) m() { r.m() }
13
14func f[T interface{m(); n()}](x T) {
15	y := C[T](x)
16	y.m()
17}
18