catala/tests/struct/bad/wrong_qualified_field.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
680 B
Plaintext
Raw Normal View History

## Article
```catala
declaration structure Foo:
data f content integer
declaration structure Bar:
data f content integer
data g content integer
declaration scope A:
context x content Foo
context y content integer
scope A:
definition x equals Foo { -- f: 1 }
definition y equals x.Foo.g
```
```catala-test-inline
$ catala test-scope A
┌─[ERROR]─
│ Field "g" does not belong to structure "Foo" (however, structure "Bar"
│ defines it)
├─➤ tests/struct/bad/wrong_qualified_field.catala_en:17.23-17.30:
│ │
│17 │ definition y equals x.Foo.g
│ │ ‾‾‾‾‾‾‾
└─ Article
#return code 123#
```