Debian Codegraph @

testsuite/tests/tool-toplevel/error_highlighting.compilers.reference

raw
1 Line 9, characters 8-15:
2 9 | let x = (1 + 2) +. 3. in ();;
3 ^^^^^^^
4 Error: This expression has type int but an expression was expected of type
5 float
6 Line 2, characters 15-17:
7 2 | let x = (1 + 2 in ();;
8 ^^
9 Error: Syntax error: ) expected
10 Line 2, characters 8-9:
11 2 | let x = (1 + 2 in ();;
12 ^
13 This ( might be unmatched
14 Line 2, characters 14-16:
15 2 | let x = (1 + 2;;
16 ^^
17 Error: Syntax error: ) expected
18 Line 2, characters 8-9:
19 2 | let x = (1 + 2;;
20 ^
21 This ( might be unmatched
22 Line 3, characters 8-9:
23 3 | let y = 1 +. 2. in
24 ^
25 Error: The constant 1 has type int but an expression was expected of type
26 float
27 Hint: Did you mean 1.?
28 Line 4, characters 2-4:
29 4 | 2 in
30 ^^
31 Error: Syntax error: ) expected
32 Line 2, characters 8-9:
33 2 | let x = (1
34 ^
35 This ( might be unmatched
36 Lines 2-4, characters 8-2:
37 2 | ........(1
38 3 | +
39 4 | 2)...
40 Error: This expression has type int but an expression was expected of type
41 float
42 Line 2, characters 12-17:
43 2 | let x = 1 + "abc" in
44 ^^^^^
45 Error: This constant has type string but an expression was expected of type
46 int
47 File "error_highlighting_use1.ml", line 1, characters 8-15:
48 1 | let x = (1 + 2) +. 3. in ();;
49 ^^^^^^^
50 Error: This expression has type int but an expression was expected of type
51 float
52 File "error_highlighting_use2.ml", line 1, characters 15-17:
53 1 | let x = (1 + 2 in ();;
54 ^^
55 Error: Syntax error: ) expected
56 File "error_highlighting_use2.ml", line 1, characters 8-9:
57 1 | let x = (1 + 2 in ();;
58 ^
59 This ( might be unmatched
60 File "error_highlighting_use3.ml", line 3, characters 2-4:
61 3 | 2 in
62 ^^
63 Error: Syntax error: ) expected
64 File "error_highlighting_use3.ml", line 1, characters 8-9:
65 1 | let x = (1
66 ^
67 This ( might be unmatched
68 File "error_highlighting_use4.ml", lines 1-3, characters 8-2:
69 1 | ........(1
70 2 | +
71 3 | 2)...
72 Error: This expression has type int but an expression was expected of type
73 float
74