catala/tests/test_func/bad/recursive.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
522 B
Plaintext
Raw Normal View History

## 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
2023-04-17 19:07:22 +03:00
┌─⯈ 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#
```