catala/tests/test_struct/bad/bug_107.catala_en
2022-11-28 16:38:09 +01:00

38 lines
842 B
Plaintext

## https://github.com/CatalaLang/catala/issues/107
```catala
declaration structure S:
data x content integer
data y content integer
declaration structure S:
data x content integer
data y content integer
declaration scope A:
context a content S
scope A:
definition a equals S { --x : 0 -- y : 1 }
```
```catala-test-inline
$ catala Interpret -s A
[ERROR] struct name "S" already defined
First definition:
┌─⯈ tests/test_struct/bad/bug_107.catala_en:4.22-23:
└─┐
4 │ declaration structure S:
│ ‾
└─ https://github.com/CatalaLang/catala/issues/107
Second definition:
┌─⯈ tests/test_struct/bad/bug_107.catala_en:8.22-23:
└─┐
8 │ declaration structure S:
│ ‾
└─ https://github.com/CatalaLang/catala/issues/107
#return code 255#
```