catala/tests/enum/bad/quick_pattern_3.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

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