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

type inconsistency in toplevel #8133

Closed
vicuna opened this issue May 5, 2003 · 1 comment
Closed

type inconsistency in toplevel #8133

vicuna opened this issue May 5, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 5, 2003

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

Bug description

Full_Name: Yutaka Oiwa
Version: 3.06
OS: SunOS5, Linux
Submission from: h219-110-059-210.catv01.itscom.jp (219.110.59.210)

Redefining already-open'ed module in toplevel breaks type consistency.

% /usr/bin/ocaml
Objective Caml version 3.06

module M = struct let a = 0 end;;

module M : sig val a : int end

open M;;

a;;

  • : int = 0

module M = struct let a = (0, 0) end;;

module M : sig val a : int * int end

a;;

  • : int = 537771982

Obj.is_block (Obj.magic a);;

  • : bool = true

Version 3.06+28 (2003-04-28) in CVS also reproduces this bug.

@vicuna
Copy link
Author

vicuna commented May 12, 2003

Comment author: administrator

Fixed 2003-05-12 by XL.

@vicuna vicuna closed this as completed May 12, 2003
@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