-
Notifications
You must be signed in to change notification settings - Fork 249
Closed
ocaml/opam-repository
#29117Labels
Description
$ cat inlined_record.ml
type t = Constr of { some_lbl: int }
let foo (x : t) =
match x with
| Constr { som }
❯ ocamlmerlin single complete-prefix -position 5:16 -prefix 'some' -filename inlined_record.ml < ./inlined_record.ml | jq .value
{
"entries": [],
"context": null
}
❯ cat indirect.ml
type r = { some_lbl: int }
type t = Constr of r
let foo (x : t) =
match x with
| Constr { som }
❯ ocamlmerlin single complete-prefix -position 6:16 -prefix 'some' -filename indirect.ml < ./indirect.ml | jq .value
{
"entries": [
{
"name": "some_lbl",
"kind": "Label",
"desc": "r -> int",
"info": "",
"deprecated": false
}
],
"context": null
}
There's not much in the log:
-
for the first case
# 0.01 Completion - fold_sumtype_constructors node type: t.Constr -
for the second
# 0.01 Completion - fold_sumtype_constructors node type: r
Reactions are currently unavailable