catala/tests/test_variable_state/bad/def_no_state.catala_en

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

31 lines
569 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:
definition foo equals 2
```
```catala-test-inline
$ catala Typecheck
[ERROR] This definition does not indicate which state has to be considered for variable foo.
--> tests/test_variable_state/bad/def_no_state.catala_en
|
10 | definition foo equals 2
| ^^^
+ Test
Variable declaration:
--> tests/test_variable_state/bad/def_no_state.catala_en
|
5 | output foo content integer
| ^^^
+ Test
#return code 255#
```