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
|
|
|
|
```
|
2022-07-08 17:23:09 +03:00
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```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
|
2022-09-23 15:10:07 +03:00
|
|
|
#return code 255#
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|