I tried to compile old code with latest OCaml, Dune, etc
I have write function looking like:
let write ~path ?(pos=0) ~data =
....
This code emits warning with OCaml 4.12.0
Error (warning 16 [unerasable-optional-argument]): this optional argument cannot be erased.
Even if I put it as the last one, the warning persists. Why this new warning? I thought it should not be the last. What is the correct position in this case?