Error codes · Syntax
PW0009
expected_expression
The program must hold to this: an expression was expected here.
A program the compiler refuses with it
module logic
fn both(open: Bool, staffed: Bool) -> Bool !{} {
open && staffed
}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 operatorFrom && 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.