mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 01:35:56 +03:00
0c0ef1ae1a
Simply re-generated with 'make tests CLERK_OPTS=--reset'
31 lines
569 B
Plaintext
31 lines
569 B
Plaintext
## 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#
|
|
```
|