ursus
06/29/2018, 10:24 PMShawn
06/29/2018, 10:29 PMcallButtonState isn’t just an Int, sure, I guess, but why would this need to be exhaustive? these methods look like they’d return Unit, so the when doesn’t look like it’s assigning anything usefulursus
06/29/2018, 10:38 PMursus
06/29/2018, 10:39 PMShawn
06/29/2018, 10:41 PMAnyShawn
06/29/2018, 10:41 PM{} when Kotlin lets you eliminate the case entirelyursus
06/29/2018, 10:49 PMShawn
06/29/2018, 10:49 PMursus
06/29/2018, 10:50 PMShawn
06/29/2018, 10:50 PMwhen is only required to be exhaustive when used as an expressionursus
06/29/2018, 10:50 PMursus
06/29/2018, 10:51 PMShawn
06/29/2018, 10:51 PMursus
06/29/2018, 10:51 PMShawn
06/29/2018, 10:52 PMursus
06/29/2018, 10:52 PMursus
06/29/2018, 10:52 PMShawn
06/29/2018, 10:53 PMcase -> Unitursus
06/29/2018, 10:54 PMShawn
06/29/2018, 10:56 PMursus
06/29/2018, 11:02 PMursus
06/29/2018, 11:02 PM