poohbar
02/19/2020, 9:05 PMFoo
fun bar(): Animal
In my implementation I use it like so:
(foo.bar() as Dog).bark()
In my test I tried to mock this like this:
every { (foo.bar() as Dog).bark() } returns "whoof"
But it throws complaining about missing type hint. Any ideas?