catala/tests/proof/good/direct_scope_call.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

35 lines
560 B
Plaintext

```catala
declaration scope SubFoo:
input x content integer
output y content integer
declaration scope Foo:
output z content integer
scope SubFoo:
definition y equals x + x
scope Foo:
definition z equals
(output of SubFoo with { -- x: 1 }).y
```
```catala-test-inline
$ catala Typecheck --check-invariants
┌─[RESULT]─
│All invariant checks passed
└─
┌─[RESULT]─
│Typechecking successful!
└─
```
```catala-test-inline
$ catala Proof -s Foo
┌─[RESULT]─
│No errors found during the proof mode run.
└─
```