Skip to content

Bug in mock for specialized interface #150

@mirrorru

Description

@mirrorru

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions