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

references #8089

Closed
vicuna opened this issue Apr 4, 2003 · 1 comment
Closed

references #8089

vicuna opened this issue Apr 4, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 4, 2003

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

Bug description

Full_Name: Christophe Poucet
Version: 3.06
OS: Windows
Submission from: ncasse01.telenet-ops.be (213.224.83.38)

When using ref's sometimes it will change the type specification of the
monomorphic type yet not add the given param, perhaps this will explain better:

let x = ref[];;

val x : '_a list ref = {contents = []}

x := (function y -> y)::!x;;

x;;

  • : ('_a -> '_a) list ref = {contents = []}

x := (function f -> f f)::!x;;

Characters 22-23:
x := (function f -> f f)::!x;;
^
This expression has type 'a -> 'b but is here used with type 'a

x;;

  • : (('_a -> '_b) -> '_a -> '_b) list ref = {contents = []}

It -does- change the type of x, yet it doesn't add the function to the list....

Is this a bug, or am I missing something?

Christophe Poucet

@vicuna
Copy link
Author

vicuna commented Apr 6, 2003

Comment author: administrator

see #8088

@vicuna vicuna closed this as completed Apr 6, 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