Type-level check that value is never. Useful for exhaustive
matching, e.g. for return value of select
If you provide value that is not of type never, there will be a
compile-time error. As a failsafe, this function will throw at runtime
if it is ever called (code with never values is supposed to be unreachable)
Type-level check that
valueisnever. Useful for exhaustive matching, e.g. for return value of selectIf you provide value that is not of type
never, there will be a compile-time error. As a failsafe, this function will throw at runtime if it is ever called (code withnevervalues is supposed to be unreachable)