Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function types without return values cause generator runtime panic #7

Closed
jgraettinger opened this issue Jan 16, 2015 · 0 comments · Fixed by #8
Closed

Function types without return values cause generator runtime panic #7

jgraettinger opened this issue Jan 16, 2015 · 0 comments · Fixed by #8

Comments

@jgraettinger
Copy link

Eg, while

 type Fooer interface {
        Foo(f func(x string) string) error
 }

Works,

 type Fooer interface {
        Foo(f func(x string)) error
 }

Will panic. PR with reproducing test & fix forthcoming.

jgraettinger pushed a commit to jgraettinger/mockery that referenced this issue Jan 16, 2015
Fixes vektra#7. Also add a reproducing test case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant