# mockk

Paul Martin

05/07/2020, 5:41 PM
hi guys. i'm trying to mock the response of an overloaded function, something like this:
Copy code
every { } returns baz
has got two overloaded implementations with different parameter types, and so the compiler is giving me an "overload resolution ambiguity" error because it can't tell which one i'm talking about. is it possible to specify the type of the parameter while still allowing it to be called with
? or is there another approach i could use?