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

missing "should have type unit" with multiple recursive functions #3060

Closed
vicuna opened this issue Nov 29, 2001 · 1 comment
Closed

missing "should have type unit" with multiple recursive functions #3060

vicuna opened this issue Nov 29, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 29, 2001

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

Bug description

Full_Name: Pascal Rigaux
Version: 3.02
OS: Linux
Submission from: office.mandrakesoft.com (195.68.114.34)

let rec f _ = g()
and g() = 1
and h() = f() ; 1

this generates a "Warning: this expression should have type unit" in h
since f() has type int.

BUT, switch h and g and the warning disappear!

let rec f _ = g()
and h() = f() ; 1
and g() = 1

in my prog i discovered quite a lot of calls alike "f()" after adding a
function, quite disturbing...

@vicuna
Copy link
Author

vicuna commented Nov 30, 2001

Comment author: administrator

Redundant with #3059

@vicuna vicuna closed this as completed Aug 25, 2002
@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