Matched object type miss when expression case. Kotlin
It just blew my mind. So maybe someone was faced with such a problem. I try to use a new approach for Retrofit with statements. The problem is that even with a matched instance of the result else block applies. How can it be?
override fun invoke(result: GraphCallResult) {
when(result) {
is GraphCallResult.Success -> {
collections.postValue(Converter.convertCollections(result.response.data?.collections))
loading.postValue(false)...