mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
c864f658c8
Aerates the printing of messages, removes extraneous noise, and more clearly attaches the various information tied to a given message.
39 lines
756 B
Plaintext
39 lines
756 B
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration enumeration E:
|
|
-- Empty
|
|
-- Rec content E
|
|
|
|
declaration scope A:
|
|
output y content E
|
|
|
|
scope A:
|
|
definition y equals E.Empty
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope A
|
|
┌─[WARNING]─
|
|
│
|
|
│ The constructor "Rec" of enumeration "E" is never used;
|
|
│ maybe it's unnecessary?
|
|
│
|
|
├─➤ tests/struct/bad/nested.catala_en:6.6-6.9:
|
|
│ │
|
|
│ 6 │ -- Rec content E
|
|
│ │ ‾‾‾
|
|
└─ Article
|
|
┌─[ERROR]─
|
|
│
|
|
│ The type E is defined using itself, which is not supported
|
|
│ (Catala does not allow recursive types)
|
|
│
|
|
├─➤ tests/struct/bad/nested.catala_en:6.18-6.19:
|
|
│ │
|
|
│ 6 │ -- Rec content E
|
|
│ │ ‾
|
|
└─ Article
|
|
#return code 123#
|
|
```
|