catala/tests/struct/bad/wrong_qualified_field.catala_en
Louis Gesbert c864f658c8 Cleaner message printing
Aerates the printing of messages, removes extraneous noise, and more clearly
attaches the various information tied to a given message.
2024-05-03 12:21:34 +02:00

33 lines
680 B
Plaintext

## 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#
```