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.
29 lines
528 B
Plaintext
29 lines
528 B
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration structure Foo:
|
|
data f 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.Fo.f
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope A
|
|
┌─[ERROR]─
|
|
│
|
|
│ No struct named Fo found
|
|
│
|
|
├─➤ tests/struct/bad/nonexisting_struct.catala_en:13.25-13.27:
|
|
│ │
|
|
│ 13 │ definition y equals x.Fo.f
|
|
│ │ ‾‾
|
|
└─ Article
|
|
#return code 123#
|
|
```
|