@@ -58,8 +58,8 @@ Error: This expression has type float# but an expression was expected of type
58
58
The layout of float # is float64, because
59
59
it is the primitive float64 type float #.
60
60
But the layout of float # must be a sublayout of value, because
61
- of the annotation on the wildcard _ at line 1 , characters 20-31
62
- Custom message.
61
+ of the annotation on the wildcard _ at line 1 , characters 20 -31.
62
+ Custom message
63
63
| }]
64
64
65
65
let f x =
@@ -74,8 +74,8 @@ Error: This expression has type ('a : value)
74
74
The layout of float # is float64, because
75
75
it is the primitive float64 type float #.
76
76
But the layout of float # must be a sublayout of value, because
77
- of the annotation on the wildcard _ at line 2 , characters 15-26
78
- Custom message.
77
+ of the annotation on the wildcard _ at line 2 , characters 15 -26.
78
+ Custom message
79
79
| }]
80
80
81
81
(* Ltyp_var { name = Some name; layout } case *)
@@ -90,8 +90,8 @@ Line 3, characters 61-63:
90
90
^^
91
91
Error : This type ('a : value ) should be an instance of type ('b : float64 )
92
92
The layout of 'a is value, because
93
- of the annotation on the type variable 'a
94
- Custom message.
93
+ of the annotation on the type variable 'a.
94
+ Custom message
95
95
But the layout of 'a must overlap with float64, because
96
96
of the definition of t at line 2 , characters 2 -28.
97
97
| }]
@@ -112,8 +112,8 @@ Error: Bad layout annotation:
112
112
The layout of t is float64 , because
113
113
of the definition of t at line 2 , characters 2 -18.
114
114
But the layout of t must be a sublayout of value , because
115
- of the annotation on the type variable a
116
- Custom message .
115
+ of the annotation on the type variable a .
116
+ Custom message
117
117
|}]
118
118
119
119
(* Second call to [layout_of_annotation] in the Not_found case
@@ -131,8 +131,8 @@ Error: This alias is bound to type t but is used as an instance of type
131
131
The layout of t is float64, because
132
132
of the definition of t at line 2 , characters 2 -18.
133
133
But the layout of t must be a sublayout of value, because
134
- of the annotation on the type variable a
135
- Custom message.
134
+ of the annotation on the type variable a.
135
+ Custom message
136
136
| }]
137
137
138
138
(* Third call to [layout_of_annotation] in the None case
@@ -149,8 +149,8 @@ Error: Bad layout annotation:
149
149
The layout of t / 2 is float64 , because
150
150
of the definition of t at line 2 , characters 2 -18.
151
151
But the layout of t / 2 must be a sublayout of value , because
152
- of the annotation on the wildcard _ at line 3 , characters 26-31
153
- Custom message .
152
+ of the annotation on the wildcard _ at line 3 , characters 26 -31.
153
+ Custom message
154
154
|}]
155
155
156
156
(* Currently it's not possible to attach attributes to Ltyp_poly *)
0 commit comments