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