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

27 lines
489 B
Plaintext

## Test
```catala
declaration scope A:
context x content integer
context y content integer
scope A:
label base_y
definition y equals 0
exception base_y
definition x equals 1
```
```catala-test-inline
$ catala Interpret -s A
[ERROR] Unknown label for the scope variable x: "base_y"
┌─⯈ tests/test_exception/bad/dangling_exception.catala_en:12.13-12.19:
└──┐
12 │ exception base_y
│ ‾‾‾‾‾‾
└─ Test
#return code 255#
```