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.
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration enumeration E:
|
|
-- Case1
|
|
-- Case2
|
|
|
|
declaration enumeration F:
|
|
-- Case3
|
|
-- Case4
|
|
|
|
declaration scope A:
|
|
context x content E
|
|
context y content boolean
|
|
|
|
scope A:
|
|
definition x equals Case1
|
|
definition y equals x with pattern Case3
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope A
|
|
┌─[ERROR]─
|
|
│
|
|
│ Error during typechecking, incompatible types:
|
|
│ ─➤ E
|
|
│ ─➤ F
|
|
│
|
|
│ While typechecking the following expression:
|
|
├─➤ tests/enum/bad/quick_pattern_3.catala_en:18.21-18.22:
|
|
│ │
|
|
│ 18 │ definition y equals x with pattern Case3
|
|
│ │ ‾
|
|
├─ Article
|
|
│
|
|
│ Type E is coming from:
|
|
├─➤ tests/enum/bad/quick_pattern_3.catala_en:13.19-13.20:
|
|
│ │
|
|
│ 13 │ context x content E
|
|
│ │ ‾
|
|
├─ Article
|
|
│
|
|
│ Type F is coming from:
|
|
├─➤ tests/enum/bad/quick_pattern_3.catala_en:18.21-18.41:
|
|
│ │
|
|
│ 18 │ definition y equals x with pattern Case3
|
|
│ │ ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
└─ Article
|
|
#return code 123#
|
|
```
|