merlin icon indicating copy to clipboard operation
merlin copied to clipboard

ocamllsp(hole)/"typed hole" error on locally abstract type in an incomplete fragment

Open 2BitSalute opened this issue 1 year ago • 1 comments

Repro:

Type this fragment:

let eval_value (type a)

The (type a) is highlighted as an error, with the ocamllsp(hole) error message: This typed hole should be replaced with an expression of type 'a.

image

2BitSalute avatar Sep 17 '24 18:09 2BitSalute

Thanks for your report.

I think this is a Merlin issue. What happens is probably that Merlin's recovery fills the Typedtree with a hole, but since it is not a hole introduced by the user we should not issue that kind of "actionable" message relating to it.

voodoos avatar Sep 18 '24 09:09 voodoos