@@ -121,7 +121,7 @@ type r : void = {a:string}
121
121
Line 1 , characters 0-26 :
122
122
1 | type r : void = {a :string }
123
123
^^^^^^^^^^^^^^^^^^^^^^^^^^
124
- Error : The layout of type r is non_null_value , because
124
+ Error : The layout of type r is value , because
125
125
it 's a boxed record type .
126
126
But the layout of type r must be a sublayout of void , because
127
127
of the annotation on the declaration of the type r .
@@ -133,7 +133,7 @@ type v : void = A of t_value
133
133
Line 1 , characters 0-28 :
134
134
1 | type v : void = A of t_value
135
135
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136
- Error : The layout of type v is non_null_value , because
136
+ Error : The layout of type v is value , because
137
137
it 's a boxed variant type .
138
138
But the layout of type v must be a sublayout of void , because
139
139
of the annotation on the declaration of the type v .
@@ -145,7 +145,7 @@ type attr : void = ..
145
145
Line 1 , characters 0-21 :
146
146
1 | type attr : void = ..
147
147
^^^^^^^^^^^^^^^^^^^^^
148
- Error : The layout of type attr is non_null_value , because
148
+ Error : The layout of type attr is value , because
149
149
it 's an extensible variant type .
150
150
But the layout of type attr must be a sublayout of void , because
151
151
of the annotation on the declaration of the type attr .
@@ -159,8 +159,8 @@ Line 1, characters 40-45:
159
159
^^^^^
160
160
Error : This expression has type string but an expression was expected of type
161
161
('a : void )
162
- The layout of string is non_null_value , because
163
- it is the primitive non - null value type string .
162
+ The layout of string is value , because
163
+ it is the primitive value type string .
164
164
But the layout of string must be a sublayout of void, because
165
165
of the annotation on the type variable 'a.
166
166
| }];;
@@ -187,7 +187,7 @@ Line 1, characters 40-45:
187
187
^^^^^
188
188
Error : This expression has type 'b * 'c
189
189
but an expression was expected of type ('a : void )
190
- The layout of 'a * 'b is non_null_value , because
190
+ The layout of 'a * 'b is value , because
191
191
it's a tuple type .
192
192
But the layout of 'a * 'b must be a sublayout of void, because
193
193
of the annotation on the type variable 'a.
@@ -206,7 +206,7 @@ Line 2, characters 36-37:
206
206
^
207
207
Error : This expression has type [ `A of int | `B ]
208
208
but an expression was expected of type 'a t = ('a : void )
209
- The layout of [ `A of int | `B ] is non_null_value , because
209
+ The layout of [ `A of int | `B ] is value , because
210
210
it's a polymorphic variant type .
211
211
But the layout of [ `A of int | `B ] must be a sublayout of void, because
212
212
of the definition of t at line 1 , characters 0 -22.
@@ -222,7 +222,7 @@ Line 2, characters 31-32:
222
222
^
223
223
Error : This expression has type int -> int
224
224
but an expression was expected of type 'a t = ('a : void )
225
- The layout of int -> int is non_null_value , because
225
+ The layout of int -> int is value , because
226
226
it's a function type .
227
227
But the layout of int -> int must be a sublayout of void, because
228
228
of the definition of t at line 1 , characters 0 -22.
@@ -248,7 +248,7 @@ Line 4, characters 17-39:
248
248
^^^^^^^^^^^^^^^^^^^^^^
249
249
Error : This expression has type (module X_int )
250
250
but an expression was expected of type 'a t = ('a : void )
251
- The layout of (module X_int ) is non_null_value , because
251
+ The layout of (module X_int ) is value , because
252
252
it's a first- class module type .
253
253
But the layout of (module X_int ) must be a sublayout of void, because
254
254
of the definition of t at line 1 , characters 0 -22.
0 commit comments