Skip to content

[enhance] Smart cast in app:watch UIs #269

@Kaaveh

Description

@Kaaveh

In Screens in app:watch UIs, kotlin forces us to cast the state of LoadableData:

is LoadableData.Error -> {
    ErrorView(errorMessage = errorViewMapper((state.marketList as LoadableData.Error).error))
}

And it says:
Smart cast to 'LoadableData. Error' is impossible, because 'state. marketList' is a public API property declared in different module.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions