mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 01:35:56 +03:00
27 lines
489 B
Plaintext
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#
|
|
```
|