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

Output from ocamlc -i #8416

Closed
vicuna opened this issue Dec 16, 2003 · 1 comment
Closed

Output from ocamlc -i #8416

vicuna opened this issue Dec 16, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 16, 2003

Original bug ID: 1981
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Jim Farrand
Version: 3.07+2
OS: Gentoo GNU/Linux
Submission from: 81-178-212-117.dsl.pipex.com (81.178.212.117)

Incorrect output generated by ocamlc -i:

jim@draco src $ cat test.ml

class a =
object
method x : b -> unit = fun _ -> () ;
end
and b =
object
method x : a -> unit = fun _ -> () ;
end ;;

jim@draco src $ ocamlc -i test.ml
class a : object method x : b -> unit end
class b : object method x : a -> unit end

This output doesn't compile when passed back into ocamlc, as b is not defined at
the time it is used in the definition of a.

The correct output should be:

class a : object method x : b -> unit end
and b : object method x : a -> unit end

@vicuna
Copy link
Author

vicuna commented Jun 12, 2004

Comment author: administrator

Fixed by XL 2004-06-12

@vicuna vicuna closed this as completed Jun 12, 2004
@vicuna vicuna added the bug label Mar 19, 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