minimock icon indicating copy to clipboard operation
minimock copied to clipboard

Bug in mock for specialized interface

Open mirrorru opened this issue 4 months ago • 0 comments

I found bug on generating specialized interface v.3.4.5, v.3.4.7 Source:

package tmp

type Maker[T any] interface {
	MakeSlice(capacity int) []T
}

type IntMaker interface {
	Maker[int]
}

In generated file exist reference to unknown type "T":

// IntMakerMockMakeSliceResults contains results of the IntMaker.MakeSlice
type IntMakerMockMakeSliceResults struct {
	ta1 []T
}

Image

#BUG

mirrorru avatar Sep 12 '25 21:09 mirrorru