blob: 3f822c75546c637bf5c03bbe0acc8d16c4a878bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// 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 pkgdoc
import (
crand "crypto/rand"
"math/rand"
)
type T int
type U int
func (T) M() {}
var _ = rand.Int
var _ = crand.Reader
type G[T any] struct{ x T }
func (g G[T]) M1() {}
func (g *G[T]) M2() {}
|