Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2BitSalute opened this issue Sep 17, 2024 · 1 comment
Labels

Comments

@2BitSalute
Copy link

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
@voodoos voodoos transferred this issue from ocaml/ocaml-lsp Sep 18, 2024
@voodoos
Copy link
Collaborator

voodoos commented Sep 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants