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

Cannot use type in function argument #13

Closed
imosquera opened this issue Oct 8, 2013 · 3 comments
Closed

Cannot use type in function argument #13

imosquera opened this issue Oct 8, 2013 · 3 comments

Comments

@imosquera
Copy link
Contributor

I get the following error when using mocktest:

src/github.com/imosquera/uploadthis/uploadthis/main.go:23: cannot use commanders (type map[string]"github.com/imosquera/uploadthis/commands".Commander) as type map[string]"github.com/imosquera/uploadthis/commands".Commander in function argument

This corresponds to this code sgement:
https://github.com/imosquera/uploadthis/blob/command-org/uploadthis/main.go#L21

I'm not sure why it would do this at all but can't find a way around it. If i use "go build" it all compiles correctly. Any thoughts?

Note: this happens only when I "//mock" the commands package and works fine without it.

@qur
Copy link
Owner

qur commented Oct 8, 2013

What output do you get when running with the -raw option? This looks a bit like the error that prompted issue #11, but it's hard to say with the rewriting enabled.

@imosquera
Copy link
Contributor Author

I just noticed you wrote back here. I unfortunately changed my code and can't reproduce this error any longer. I'll let you know if it happens again.

@qur
Copy link
Owner

qur commented Oct 31, 2013

If this happens again, then please raise a new issue. Otherwise I am going to assume this was issue #11.

@qur qur closed this as completed Oct 31, 2013
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

No branches or pull requests

2 participants