Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in error message reporting Need_recursive_types. #5281

Closed
vicuna opened this issue Jun 1, 2011 · 0 comments
Closed

typo in error message reporting Need_recursive_types. #5281

vicuna opened this issue Jun 1, 2011 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 1, 2011

Original bug ID: 5281
Reporter: jm
Status: closed (set by @damiendoligez on 2011-06-01T22:24:38Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 3.13.0+dev
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

% cat >a.ml <<<"type t = (string, t) Hashtbl.t"
% cat >b.ml <<<"type t = A.t"
% ocamlc -rectypes -c a.ml
% ocamlc -c b.ml
File "b.ml", line 1, characters 0-1:
Error: Unit A imports from B, which uses recursive types.
The compilation flag -rectypes is required

correction :

diff --git a/typing/env.ml b/typing/env.ml
index 0442479..6eb5585 100644
--- a/typing/env.ml
+++ b/typing/env.ml
@@ -869,4 +869,4 @@ let report_error ppf = function
| Need_recursive_types(import, export) ->
fprintf ppf
"@[Unit %s imports from %s, which uses recursive types.@ %s@]"

  •    import export "The compilation flag -rectypes is required"
    
  •    export import "The compilation flag -rectypes is required"
    
@vicuna vicuna closed this as completed Jun 1, 2011
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant