catala/tests/scope/bad/scope_call_duplicate.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

30 lines
755 B
Plaintext

```catala
declaration scope Toto:
context bar content integer
input baz content decimal
output foo content integer
scope Toto:
definition bar equals 1
definition foo equals 1212 + bar
declaration scope Titi:
output fizz content Toto
scope Titi:
definition fizz equals output of Toto with {--bar: 1 --baz: 2.1 -- bar: 3}
```
```catala-test-inline
$ catala dcalc -s Titi
┌─[ERROR]─
│ Duplicate definition of scope input variable 'bar'
├─➤ tests/scope/bad/scope_call_duplicate.catala_en:14.70-14.73:
│ │
│ 14 │ definition fizz equals output of Toto with {--bar: 1 --baz: 2.1 -- bar: 3}
│ │ ‾‾‾
└─
#return code 123#
```