Skip to content

Commit

Permalink
Get typedtree building
Browse files Browse the repository at this point in the history
  • Loading branch information
ncik-roberts committed Nov 9, 2023
1 parent 126213a commit 058dd1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions src/ocaml/typing/typedtree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,7 @@ and 'k case =
}

and record_label_definition =
<<<<<<< HEAD
| Kept of Types.type_expr * unique_use
||||||| b01e78e20
| Kept of Types.type_expr
=======
| Kept of Types.type_expr * mutable_flag
>>>>>>> ups/501
| Kept of Types.type_expr * mutable_flag * unique_use
| Overridden of Longident.t loc * expression

and binding_op =
Expand Down Expand Up @@ -1043,9 +1037,10 @@ let rec exp_is_nominal exp =
| _ when exp.exp_attributes <> [] -> false
| Texp_ident _ | Texp_instvar _ | Texp_constant _
| Texp_variant (_, None)
| Texp_construct (_, _, []) ->
| Texp_construct (_, _, [], _) ->
true
| Texp_field (parent, _, _) | Texp_send (parent, _) -> exp_is_nominal parent
| Texp_field (parent, _, _, _, _) | Texp_send (parent, _, _) ->
exp_is_nominal parent
| _ -> false
(* Merlin specific *)
Expand Down
2 changes: 1 addition & 1 deletion src/ocaml/typing/typedtree.mli
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ and 'k case =
}

and record_label_definition =
| Kept of Types.type_expr * unique_use * mutable_flag
| Kept of Types.type_expr * mutable_flag * unique_use
| Overridden of Longident.t loc * expression

and binding_op =
Expand Down

0 comments on commit 058dd1e

Please sign in to comment.