If the result of 'when' is not used in an expression, this 'when' expression has type 'Unit' despite of whatever FE has inferred.