Skip to content

Calling locate on a record is not precise enough #1524

@kit-ty-kate

Description

@kit-ty-kate
type t = {
  data : int;
}

let f x =
  x.data + 1

Calling locate on data in f will redirect to t but not to the line actually defining data. In this very trivial case it's not a big deal but it can get annoying for large records when you then have to look for the field you needed by hand afterwards

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions