Debian Codegraph @

testsuite/tests/parsing/broken_invariants.compilers.reference

raw
1 Line 12, characters 20-25:
2 12 | let empty_tuple = [%tuple];;
3 ^^^^^
4 Error: broken invariant in parsetree: Tuples must have at least 2 components.
5 Line 1, characters 21-27:
6 1 | let empty_record = [%record];;
7 ^^^^^^
8 Error: broken invariant in parsetree: Records cannot be empty.
9 Line 1, characters 20-27:
10 1 | let empty_apply = [%no_args f];;
11 ^^^^^^^
12 Error: broken invariant in parsetree: Function application with no argument.
13 Line 1, characters 19-45:
14 1 | let f = function [%record_with_functor_fields] -> ();;
15 ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 Error: broken invariant in parsetree: Functor application not allowed here.
17 Line 1, characters 3-12:
18 1 | [%%empty_let];;
19 ^^^^^^^^^
20 Error: broken invariant in parsetree: Let with no bindings.
21 Line 1, characters 3-13:
22 1 | [%%empty_type];;
23 ^^^^^^^^^^
24 Error: broken invariant in parsetree: Type declarations cannot be empty.
25 Line 2, characters 4-15:
26 2 | [%%missing_rhs]
27 ^^^^^^^^^^^
28 Error: broken invariant in parsetree: Module type substitution with no right hand side
29 Line 2, characters 9-26:
30 2 | let x: [%empty_poly_binder] = 0;;
31 ^^^^^^^^^^^^^^^^^
32 Error: broken invariant in parsetree: Explicit universal type quantification cannot be empty.
33 Line 2, characters 11-28:
34 2 | let f (x:[%empty_poly_binder]) = 0;;
35 ^^^^^^^^^^^^^^^^^
36 Error: broken invariant in parsetree: Explicit universal type quantification cannot be empty.
37 Line 2, characters 15-32:
38 2 | let f x = (x:[%empty_poly_binder]);;
39 ^^^^^^^^^^^^^^^^^
40 Error: broken invariant in parsetree: Explicit universal type quantification cannot be empty.
41 Line 1, characters 16-33:
42 1 | let g: int -> [%empty_poly_binder] = fun n x -> x;;
43 ^^^^^^^^^^^^^^^^^
44 Error: broken invariant in parsetree: Explicit universal type quantification cannot be empty.
45 Line 2, characters 9-29:
46 2 | let f ([%empty_open_tuple_pat]) = ();;
47 ^^^^^^^^^^^^^^^^^^^^
48 Error: broken invariant in parsetree: Open tuple patterns must have at least one component.
49 Line 1, characters 9-31:
50 1 | let f ([%short_closed_tuple_pat]) = ();;
51 ^^^^^^^^^^^^^^^^^^^^^^
52 Error: broken invariant in parsetree: Closed tuple patterns must have at least two components.
53