9 lines
312 B
Text
9 lines
312 B
Text
Error: Type Mismatch
|
|
╭─[declaration-bool-int-negation.txt:2:17]
|
|
│
|
|
2 │ let foo: bool = -one;
|
|
· ──┬─ ┬
|
|
· ╰─────── Expected type `bool`,
|
|
· │
|
|
· ╰── but expression is of type `int`
|
|
───╯
|