aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/stub/stub_generic_receiver.go
blob: 1c00569ea1c0fc87384270ed26c442c839ada730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build go1.18
// +build go1.18

package stub

import "io"

// This file tests that that the stub method generator accounts for concrete
// types that have type parameters defined.
var _ io.ReaderFrom = &genReader[string, int]{} //@suggestedfix("&genReader", "refactor.rewrite", "Implement io.ReaderFrom")

type genReader[T, Y any] struct {
	T T
	Y Y
}