sreich
04/02/2017, 11:08 AMfun bizz(a: Int) = when (a) {
1 -> {
bar()
true
}
2 -> {
if (foo()) {
doStuff()
true //"this statement is unused"..but why?
}
false
}
else -> true