type t = {
data : int;
}
let f {data} =
data + 1
let g x =
x.data + 1
looking at this simple example:
- In
g, calling locate on data will redirect to the type t
- But in
f, calling locate on data fails with Already at definition point
I understand the reasoning behind it but I feel like it would be nice to also redirect to the type t in the case of f.