mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
c864f658c8
Aerates the printing of messages, removes extraneous noise, and more clearly attaches the various information tied to a given message.
28 lines
757 B
Plaintext
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#
|
|
```
|