mitchtabian/Open-API-Android-App

Not enough information to infer type variable T

razaghimahdi opened this issue · 1 comments

so when i use emit for buildError then i get: Not enough information to infer type variable T

for example in AuthRepositoryImpl.kt:

        emit(
            buildError(
                loginFieldErrors,
                UIComponentType.Dialog(),
                stateEvent
            )
        )

why this happening?

Specify the type.

emit(
    buildError<TheType>(
        loginFieldErrors,
        UIComponentType.Dialog(),
        stateEvent
    )
)