bod
10/04/2018, 11:55 AMwhen (e)
, (with e being an instance of MyEnum
) and for the branches, I’m allowed to put something that is not one of the possible values of MyEnum
(I can put values of other enums). I find this extremely surprising 🙂 Thoughts?Hamza
10/04/2018, 11:56 AMarekolek
10/04/2018, 11:57 AMbod
10/04/2018, 11:57 AMwhen (transaction.status) {
TransactionStatus.PENDING -> TODO()
TransactionStatus.COMPLETED -> TODO()
TransactionStatus.DECLINED -> TODO()
TransactionStatus.UNKNOWN -> TODO()
TransactionActivityTag.TRANSPORT -> TODO()
arekolek
10/04/2018, 11:57 AMbod
10/04/2018, 11:57 AMHamza
10/04/2018, 11:58 AMbod
10/04/2018, 11:58 AMString
but another type that happens to be an enum. I’m allowed?arekolek
10/04/2018, 12:02 PMbod
10/04/2018, 12:04 PMwhen
on `enum`s is broken in Kotlin 😄 Not scary at all!arekolek
10/04/2018, 12:14 PMbod
10/04/2018, 12:16 PMMike
10/04/2018, 1:10 PMarekolek
10/04/2018, 1:27 PM