1 An `if` expression is missing an `else` block.
3 Erroneous code example:
12 This error occurs when an `if` expression without an `else` block is used in a
13 context where a type other than `()` is expected. In the previous code example,
14 the `let` expression was expecting a value but since there was no `else`, no
17 An `if` expression without an `else` block has the type `()`, so this is a type
18 error. To resolve it, add an `else` block having the same type as the `if`
21 So to fix the previous code example: