android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
550 stars 266 forks source link

Advanced Kotlin Coroutines, Section 6: Type inference failed #93

Open victorgvieira opened 4 years ago

victorgvieira commented 4 years ago

I guess that is missing the liveData type in this highlighted code

image

Resolution: liveData<List<Plant>>

zaprogrammer commented 4 years ago

Same issue.

ChrisGuzman commented 4 years ago

Yeah following the example of val plants it should be fun getPlantsWithGrowZone(growZone: GrowZone): LiveData<List<Plant>> = liveData {