Error codes · Syntax

PW0009

expected_expression

The program must hold to this: an expression was expected here.

A program the compiler refuses with it

Refused: PW0009
module logic

fn both(open: Bool, staffed: Bool) -> Bool !{} {
    open && staffed
}
pw check
error: [PW0009] expected an expression, found `&`
 --> logic.pw:4:11
  |
4 |     open && staffed
  |           ^ expected an expression, found `&`
  |
  = help: Pleris writes `&` for and and `|` for or; write one operator

From && and ||, in Errors and diagnostics. A test holds the guide's examples to the compiler.

Reading the diagnostic

pw check prints the code in brackets, [PW0009], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.