catala/tests/test_func/bad/recursive.catala_en
2023-04-27 12:09:22 +02:00

22 lines
522 B
Plaintext

## Article
```catala
declaration scope RecursiveFunc:
context f content integer depends on x content integer
scope RecursiveFunc:
definition f of x equals f of x + 1
```
```catala-test-inline
$ catala Interpret -s RecursiveFunc
[ERROR] The variable f is used in one of its definitions, but recursion is forbidden in Catala
┌─⯈ tests/test_func/bad/recursive.catala_en:8.28-8.29:
└─┐
8 │ definition f of x equals f of x + 1
│ ‾
└─ Article
#return code 255#
```