I’ve found an issue where Android and iOS expose d...
# multiplatform
n
I’ve found an issue where Android and iOS expose different behavior. Having this piece of a unit test:
Copy code
val result = backend.send(LoginMessageStrategy(login))
assertTrue(result is MessageResult.ok<SessionState>, "$result")
val sessionState = (result as MessageResult.ok<SessionState>).value
So the IDE complains about the “redundant” cast after
assertTrue
, but if I remove it, then the unit test fails for iOS with an exception saying
value
not found on
result
, so I have to keep it there and let the IDE and the compiler complain, but at least it works for both platforms! If there is a better place to report MPP issues, please let me know.
t
should be fixed in 1.3.20 with contracts
n
Sounds cool.