nestserau
12/20/2018, 10:53 AMval 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.thevery
12/20/2018, 11:57 AMnestserau
12/20/2018, 12:37 PM