Skip to content

Jump to definition broken on file with simple typing error #1580

@ddickstein

Description

@ddickstein
module type S = sig
  val foo : unit -> ('a -> 'a -> bool) -> unit
end

module F (M : S) = struct
  let z () = M.foo () compare
end

Trying to jump to foo gives "Not in environment 'M.foo'". Fixing the type of the function foo takes to return int instead of bool makes jumping to definition work properly.

Tested on 945e5e1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions