catala/tests/arithmetic/bad/logical_prio.catala_en
Louis Gesbert c864f658c8 Cleaner message printing
Aerates the printing of messages, removes extraneous noise, and more clearly
attaches the various information tied to a given message.
2024-05-03 12:21:34 +02:00

28 lines
757 B
Plaintext

```catala
declaration scope S1:
output o content boolean
scope S1:
definition o equals true and (false and true and true) or false
```
```catala-test-inline
$ catala typecheck
┌─[ERROR]─
│ Please add parentheses to explicit which of these operators should be
│ applied first
├─➤ tests/arithmetic/bad/logical_prio.catala_en:6.28-6.31:
│ │
│ 6 │ definition o equals true and (false and true and true) or false
│ │ ‾‾‾
├─➤ tests/arithmetic/bad/logical_prio.catala_en:6.58-6.60:
│ │
│ 6 │ definition o equals true and (false and true and true) or false
│ │ ‾‾
└─
#return code 123#
```