for example in an Rx stream: ``` .subscribe { myE...
# announcements
n
for example in an Rx stream:
Copy code
.subscribe { myEnum ->
   when(myEnum) {
     MyEnum.A -> ( ... )
     MyEnum.B -> ( ... )
   }
}
when(myEnum)
will complain that
myEnum
can be
null
in Java and I should check for it in
when
. However, I know it won't be. It probably has something to do with the fact that the Rx library is written in java/