File "src/main.ml", line 16, characters 2-20:
16 | copy_structure str
^^^^^^^^^^^^^^^^^^
Error: This expression has type
Migrate_parsetree__.Ast_500.Parsetree.structure =
Ast_500.Parsetree.structure_item list
but an expression was expected of type
Parsetree.structure = Compiler_libs.Parsetree.structure_item list
Type Ast_500.Parsetree.structure_item is not compatible with type
Compiler_libs.Parsetree.structure_item
It seems bare identity functions are not enough, so I generated the full-blown migration files.
With these files, the compilation passes.
When compiling the following code with OCaml 5 and ocaml-migrate-parsetree 2.4.0
The compilation fails
It seems bare identity functions are not enough, so I generated the full-blown migration files. With these files, the compilation passes.