question, I have a function in service `Foo` ```fu...
# mockk
p
question, I have a function in service
Foo
Copy code
fun bar(): Animal
In my implementation I use it like so:
Copy code
(foo.bar() as Dog).bark()
In my test I tried to mock this like this:
Copy code
every { (foo.bar() as Dog).bark() } returns "whoof"
But it throws complaining about missing type hint. Any ideas?