Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple implementation issue in android studio 3.5 #25

Open
minion06 opened this issue Sep 18, 2019 · 2 comments
Open

Multiple implementation issue in android studio 3.5 #25

minion06 opened this issue Sep 18, 2019 · 2 comments

Comments

@minion06
Copy link

Overload resolution ambiguity all this function match

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

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

@henrytao-me
Copy link
Member

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

@rbarbish
Copy link

rbarbish commented Dec 8, 2022

Also getting this exact error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants