blob: 1fc7157b463124c25ecc9528ed5a624f7d8f2ffa [file] [log] [blame]
-- suggestedfix_stub_generic_receiver_10_23 --
//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")
type genReader[T, Y any] struct {
T T
Y Y
}
// ReadFrom implements io.ReaderFrom
func (*genReader[T, Y]) ReadFrom(r io.Reader) (n int64, err error) {
panic("unimplemented")
}