arekolek
10/04/2017, 3:54 PMIfhttps://kotlinlang.org/docs/reference/control-flow.html#when-expressionis used as an expression, thewhen
branch is mandatory, unless the compiler can prove that all possible cases are covered with branch conditions.else