Not enough information to infer type variable T
razaghimahdi opened this issue · 1 comments
razaghimahdi commented
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?
mitchtabian commented
Specify the type.
emit(
buildError<TheType>(
loginFieldErrors,
UIComponentType.Dialog(),
stateEvent
)
)