catala/tests/test_variable_state/bad/no_cross_exceptions.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
654 B
Plaintext
Raw Normal View History

2022-03-07 13:55:26 +03:00
## Test
```catala
declaration scope A:
output foo content integer
state bar
state baz
scope A:
label thing definition foo state bar equals 2
definition foo state baz equals foo + 1
exception thing definition foo state baz under condition true consequence equals 3
```
```catala-test-inline
$ catala Typecheck
[ERROR]
Unknown label for the scope variable foo.baz: "thing"
2023-04-17 19:07:22 +03:00
┌─⯈ tests/test_variable_state/bad/no_cross_exceptions.catala_en:14.13-14.18:
└──┐
14 │ exception thing definition foo state baz under condition true consequence equals 3
│ ‾‾‾‾‾
└─ Test
#return code 123#
```