Skip to content

(wrapped (transition ...)) doesn't set flags correctly #1364

@ejgallego

Description

@ejgallego

Example:

(library
 (name foo)
 (public_name bug.foo)
 (flags :standard -rectypes)
 (wrapped (transition "hi")))

results in

      ocamlc .foo.objs/k.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /home/egallego/.opam/4.07.0/bin/ocamlc.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I .foo.objs -I .foo.objs/.private -no-alias-deps -opaque -o .foo.objs/k.cmo -c -impl .wrapped_compat/K.ml-gen)
File ".wrapped_compat/K.ml-gen", line 1:
Error: Unit K imports from Foo__K, which uses recursive types.
       The compilation flag -rectypes is required

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions