catala/tests/test_variable_state/bad/def_no_state.catala_en
Aminata-Dev b087ca4f47 Improve suggestions
- Improved implementation of suggestions (suggestion_minimum_levenshtein_distance_association > suggestions.ml)
- Magnifying glass emoji added for suggestions
- Improve display by...
	- Fixing "Pos.ml" (pretty-printing box not closed)
	- Remove unnecessary spaces
- compiler/surface/parserdriver.ml
	- Optionnal suggestions added when raising a parser error
	- Function "levenshtein_distance" removed and replaced by "Suggestions.levenshtein_distance"
- Tests updated (mostly line breaks and spacing changes)
- Variable names renamed for greater clarity
- (Based on commit 0813f5c36e)
2023-07-12 11:55:11 +02:00

32 lines
644 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.14-10.17:
└──┐
10 │ definition foo equals 2
│ ‾‾‾
└─ Test
Variable declaration:
┌─⯈ tests/test_variable_state/bad/def_no_state.catala_en:5.10-5.13:
└─┐
5 │ output foo content integer
│ ‾‾‾
└─ Test
#return code 123#
```