**Actual behavior** generating code for the following interface makes the tool to panic. (Note: math constant used just for convenience. Can be any other package-defined constant, not a hardcoded value) ```go type Fooer interface { Foo([math.MaxInt8]string) } ``` Output: `panic: interface conversion: ast.Expr is *ast.SelectorExpr, not *ast.BasicLit` **Expected behavior** Generate a mocked struct with a method that takes a `[127]string{}` (or `[math.MaxInt8]string{}`) array **To Reproduce** Steps to reproduce the behavior Explained in the "Actual behaviour" section **Additional Information** - gomock mode (reflect or source): source - gomock version or git ref: v1.5.0 - golang version: go version go1.15.8 darwin/amd64 ~~**Triage Notes for the Maintainers**~~
Actual behavior
generating code for the following interface makes the tool to panic.
(Note: math constant used just for convenience. Can be any other package-defined constant, not a hardcoded value)
Output:
panic: interface conversion: ast.Expr is *ast.SelectorExpr, not *ast.BasicLitExpected behavior
Generate a mocked struct with a method that takes a
[127]string{}(or[math.MaxInt8]string{}) arrayTo Reproduce Steps to reproduce the behavior
Explained in the "Actual behaviour" section
Additional Information
Triage Notes for the Maintainers