catala/tests/test_io/good/subscope.catala_en
2022-02-14 10:17:41 +01:00

22 lines
334 B
Markdown

## Test
```catala
declaration scope A:
context a content integer
input b content integer
output c content integer
internal d content integer
declaration scope B:
a scope A
scope A:
definition a equals 0
definition c equals b + d
definition d equals 1 + a
scope B:
definition a.b equals 2
assertion a.c = 1
```