Open hseeberger opened 7 years ago
In the following snippet from the examples the argument type InvocationOnMock of the function is ugly:
InvocationOnMock
m.baz(any[Int]) answers { (inv: InvocationOnMock) => s"answers: ${inv.getArgument[Int](0) * 2}" }
Would it be possible to provide an API which expects a nicely typed function, i.e. Int => A in this case?
Int => A
In the following snippet from the examples the argument type
InvocationOnMock
of the function is ugly:Would it be possible to provide an API which expects a nicely typed function, i.e.
Int => A
in this case?