Ok, I know the reason for the second crash: ``` pr...
# coroutines
k
Ok, I know the reason for the second crash:
Copy code
private suspend fun awaitMap(): GoogleMap? {
    return (mapFragment as? SupportMapFragment)?.awaitMap()
}
awaitMap
is a suspending function. If I change the code to
Copy code
private suspend fun awaitMap(): GoogleMap? {
    val mapFragment = mapFragment as? SupportMapFragment ?: return null
    return mapFragment.awaitMap()
}
it works again. @elizarov is this a compiler bug?