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

PartialFunction resolves ahead of by-value parameter #13

Closed
alexy opened this issue Aug 6, 2013 · 3 comments
Closed

PartialFunction resolves ahead of by-value parameter #13

alexy opened this issue Aug 6, 2013 · 3 comments
Labels

Comments

@alexy
Copy link
Contributor

alexy commented Aug 6, 2013

I had to explicitly add MyTimer.time[List[Result]](myFunc(someString)) generic parameter instantiation, otherwise I was getting a PartialFunction[Int,Result] instead of List[Result] error, where the wrapped function has a signature def myFunc(x: String): List[Result]. Note the weird Int getting in from the cold. Apparently PartialFunction support needs more type inference checking/testing!

@erikvanoosten
Copy link
Owner

Auch, that is painful. We'll have to reconsider the partial function stuff. Perhaps another name for the time method for partial functions.

@scullxbones
Copy link
Collaborator

Took a swing at this, was able to reproduce the issue pretty easily. Renamed the time method for partial functions.

@erikvanoosten
Copy link
Owner

Fixed by #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants