catala/tests/test_array/bad/fold_error.catala_en
Louis Gesbert 71bb67163c Remove explicitely typed operators in tests and examples
Command used: `sed -i 's/\([-+*/><=]=\?\)[.$@^€$]/\1/g' **/*/*.catala_*`

The overload test, of course, is kept unchanged and ensures that explicit
operators still work.
2022-12-13 12:00:04 +01:00

39 lines
1.1 KiB
Plaintext

## Article
```catala
declaration scope A:
context list content collection integer
context list_high_count content integer
scope A:
definition list equals [0; 5; 6; 7; 1; 64; 12]
definition list_high_count equals number for m in list of (m >= $7)
```
```catala-test-inline
$ catala Interpret -s A
[ERROR] I don't know how to apply operator >= on types integer and
money
┌─⯈ tests/test_array/bad/fold_error.catala_en:10.63-65:
└──┐
10 │ definition list_high_count equals number for m in list of (m >= $7)
│ ‾‾
└─ Article
Type integer coming from expression:
┌─⯈ tests/test_array/bad/fold_error.catala_en:5.34-41:
└─┐
5 │ context list content collection integer
│ ‾‾‾‾‾‾‾
└─ Article
Type money coming from expression:
┌─⯈ tests/test_array/bad/fold_error.catala_en:10.66-68:
└──┐
10 │ definition list_high_count equals number for m in list of (m >= $7)
│ ‾‾
└─ Article
#return code 255#
```