summaryrefslogtreecommitdiffstats
path: root/test/typeparam/issue49536.dir/a.go
blob: a95ad60812cbaa3683174fb6fdefa0606e9547a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2022 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 a

func F() interface{} { return new(T[int]) }

type T[P any] int

func (x *T[P]) One() int { return x.Two() }
func (x *T[P]) Two() int { return 0 }