livedata-ktx icon indicating copy to clipboard operation
livedata-ktx copied to clipboard

Multiple implementation issue in android studio 3.5

Open minion06 opened this issue 6 years ago • 2 comments

Overload resolution ambiguity all this function match

fun <T, R> LiveData<T>.map(mapper: (T?) -> R?): LiveData<R> = createMediator(this, MapExt<T, R>(mapper)) fun <T, R> SupportMediatorLiveData<T>.map(mapper: (T) -> R): SupportMediatorLiveData<R> = createMediator(this, MapExt<T, R>({ return@MapExt mapper(it!!)!! }))

Shows error on using map extension function chaos in choosing map function .

minion06 avatar Sep 18 '19 07:09 minion06

Hi, I can take a look this week and let you know.

henrytao-me avatar Sep 18 '19 12:09 henrytao-me

Also getting this exact error.

rbarbish avatar Dec 08 '22 17:12 rbarbish