gojuno / gojuno/minimock

Bug in mock for specialized interface

Open
#150 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
752
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I found bug on generating specialized interface
v.3.4.5, v.3.4.7
Source:
```GO
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":
```GO
// IntMakerMockMakeSliceResults contains results of the IntMaker.MakeSlice
type IntMakerMockMakeSliceResults struct {
ta1 []T
}

```

Image

#BUG

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.