mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-14 13:58:40 +03:00
0c0ef1ae1a
Simply re-generated with 'make tests CLERK_OPTS=--reset'
41 lines
833 B
Plaintext
41 lines
833 B
Plaintext
> Include: common.catala_en
|
|
|
|
```catala
|
|
scope S:
|
|
definition z equals [
|
|
Structure { -- i: 3 -- e: Int content x };
|
|
Structure { -- i: 4 -- e: y };
|
|
1040
|
|
]
|
|
definition a equals number of (z ++ z) / 2
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala Typecheck
|
|
[ERROR] Error during typechecking, incompatible types:
|
|
--> integer
|
|
--> Structure
|
|
|
|
Error coming from typechecking the following expression:
|
|
--> tests/test_typing/bad/err5.catala_en
|
|
|
|
|
7 | Structure { -- i: 4 -- e: y };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
+
|
|
|
|
Type integer coming from expression:
|
|
--> tests/test_typing/bad/err5.catala_en
|
|
|
|
|
8 | 1040
|
|
| ^^^^
|
|
+
|
|
|
|
Type Structure coming from expression:
|
|
--> tests/test_typing/bad/err5.catala_en
|
|
|
|
|
7 | Structure { -- i: 4 -- e: y };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
+
|
|
#return code 255#
|
|
```
|