This PR adds type annotations to generated code, in order to disambiguate OCaml classic variants
The generated code produced from the example below fails to compile due to ambiguity
type ambiguous = [
| Int of int
| String of string
]
<json adapter.ocaml="Json_adapters.Identity">
<ocaml repr="classic">
type ambiguous' = [
| Int of int
| String of string
]
<json adapter.ocaml="Json_adapters.Identity">
<ocaml repr="classic">
PR checklist
[x] New code has tests to catch future regressions
This PR adds type annotations to generated code, in order to disambiguate OCaml classic variants
The generated code produced from the example below fails to compile due to ambiguity
PR checklist
CHANGES.md
is up-to-date