mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
c864f658c8
Aerates the printing of messages, removes extraneous noise, and more clearly attaches the various information tied to a given message.
33 lines
680 B
Plaintext
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#
|
|
```
|