Krotick
07/02/2019, 5:31 PMinterface Captor<T> {
val captor: CapturingSlot<T>
}
Mockk's class deinition:
class CapturingSlot<T : Any>()
Yet, I am getting Type argument is not within its bounds. Expected: Any. Found: T
Can anyone point me in the right direction?Shawn
07/02/2019, 5:32 PMShawn
07/02/2019, 5:32 PMinterface Captor<T : Any>Krotick
07/02/2019, 5:57 PMCapturingSlot<T> and just pass a type to an interface.
Yet, CapturingSlot<T> gives me Type argument is not within its bounds. Expected: Any. Found: T and I am a bit confused because explicit types all work, e.g. CapturingSlot<String> or any other type is okShawn
07/02/2019, 5:59 PMT has a bound of Any?Shawn
07/02/2019, 5:59 PMAny disqualifies null typesKrotick
07/02/2019, 6:03 PMShawn
07/02/2019, 6:04 PM