catala/tests/struct/bad/empty_struct.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

24 lines
453 B
Plaintext

## Test
```catala
declaration structure Foo:
declaration scope Bar:
internal foo content Foo
```
```catala-test-inline
$ catala Typecheck
┌─[ERROR]─
│ The struct Foo does not have any fields;
│ give it some for Catala to be able to accept it.
├─➤ tests/struct/bad/empty_struct.catala_en:4.23-4.26:
│ │
│ 4 │ declaration structure Foo:
│ │ ‾‾‾
└─ Test
#return code 123#
```