Skip to content

Merlin jumps to incorrect position (or fails to jump) for type that comes from functor #1610

Open
@ddickstein

Description

@ddickstein

Tested on 8f1d3f1

module type T = sig
  type 'a t
end

module M (T : T) = struct
  type t = int T.t
end

module N (T : T) = struct
  type t = M(T).t
end

If I try to jump to the definition of t inside functor N, it jumps to the current type definition, even though this is not a recursive definition of t. If I specify nonrec and then try it, I get "Not in environment 't'".

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