Skip to content

Commit 4b373fb

Browse files
committed
basic inline printing of nested records
1 parent d8d822d commit 4b373fb

File tree

20 files changed

+214
-4450
lines changed

20 files changed

+214
-4450
lines changed

compiler/ml/ctype.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ let new_declaration newtype manifest =
10161016
type_attributes = [];
10171017
type_immediate = false;
10181018
type_unboxed = unboxed_false_default_false;
1019+
type_inlined_types = [];
10191020
}
10201021

10211022
let instance_constructor ?in_pattern cstr =
@@ -4185,6 +4186,7 @@ let nondep_type_decl env mid id is_covariant decl =
41854186
type_attributes = decl.type_attributes;
41864187
type_immediate = decl.type_immediate;
41874188
type_unboxed = decl.type_unboxed;
4189+
type_inlined_types = decl.type_inlined_types;
41884190
}
41894191
with Not_found ->
41904192
clear_hash ();

compiler/ml/datarepr.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ let constructor_args priv cd_args cd_res path rep =
8686
type_attributes = [];
8787
type_immediate = false;
8888
type_unboxed;
89+
type_inlined_types = [];
8990
}
9091
in
9192
(existentials, [newgenconstr path type_params], Some tdecl)

compiler/ml/predef.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ let decl_abstr =
203203
type_attributes = [];
204204
type_immediate = false;
205205
type_unboxed = unboxed_false_default_false;
206+
type_inlined_types = [];
206207
}
207208

208209
let decl_abstr_imm = {decl_abstr with type_immediate = true}

0 commit comments

Comments
 (0)