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

Jump to definition broken on file with typing error #1588

Open
ddickstein opened this issue Apr 1, 2023 · 1 comment
Open

Jump to definition broken on file with typing error #1588

ddickstein opened this issue Apr 1, 2023 · 1 comment
Labels

Comments

@ddickstein
Copy link
Contributor

I don't know if this is related to #1580, so I'm opening this as a separate issue. Jumping to test on line 3 gives "Not in environment 'test'". As in that issue, fixing the type error (in this case, removing the annotation on ~f in the first line) fixes locate.

let test ~f:(_ : unit -> unit) = ()
type t = F : { f : unit -> 'fn } -> t
let call (F { f }) = test ~f

Tested on 945e5e1

@voodoos
Copy link
Collaborator

voodoos commented Apr 19, 2023

Thanks for the report, probably a similar issue than the others: Merlin recovery lacks finesse in some cases.

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