catala/tests/test_array/bad/fold_error.catala_en
2023-04-27 12:09:22 +02: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 of (m >= $7) for m among list
```
```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.50-10.52:
└──┐
10 │ definition list_high_count equals number of (m >= $7) for m among list
│ ‾‾
└─ Article
Type integer coming from expression:
┌─⯈ tests/test_array/bad/fold_error.catala_en:5.35-5.42:
└─┐
5 │ context list content collection integer
│ ‾‾‾‾‾‾‾
└─ Article
Type money coming from expression:
┌─⯈ tests/test_array/bad/fold_error.catala_en:10.53-10.55:
└──┐
10 │ definition list_high_count equals number of (m >= $7) for m among list
│ ‾‾
└─ Article
#return code 255#
```