Skip to content

Object type is returned when asking for only the type of a method since OCaml 4.08 #1124

@voodoos

Description

@voodoos

Given the following code where | symbolizes the cursor:

let s = object
  val mutable v = [0; 2]
  method p|ush hd = v <- hd :: v
end

Merlin gives the type of the whole object < push : int -> unit > instead of the type of the push method int -> unit.

When using OCaml versions < 4.08 the returned type is the correct one.

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