mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
38 lines
842 B
Plaintext
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#
|
|
```
|