mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.09k stars 198 forks source link

lenient().whenever() reports type mismatch TypeVariable(T) was expected #480

Closed ebrowne72 closed 12 months ago

ebrowne72 commented 1 year ago

I updated to 4.1.0 and replaced a lenient().`when`() with lenient().whenever(), but it gives the following error:

Type mismatch: inferred type is String? but TypeVariable(T) was expected