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.
30 lines
755 B
Plaintext
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#
|
|
```
|