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.
35 lines
560 B
Plaintext
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.
|
|
└─
|
|
```
|