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