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

Wrong error message for unbound module in 4.03+beta1 #7207

Closed
vicuna opened this issue Apr 1, 2016 · 1 comment
Closed

Wrong error message for unbound module in 4.03+beta1 #7207

vicuna opened this issue Apr 1, 2016 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Apr 1, 2016

Original bug ID: 7207
Reporter: @stedolan
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2017-09-24T15:32:12Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.03.0+dev / +beta1
Category: typing
Monitored by: @gasche

Bug description

If I write the following incorrect program:

module F (X : sig end) = struct type t = int end
type t = F(Does_not_exist).t

then 4.02.1 gives me a sensible error message:

File "moderror.ml", line 2, characters 9-28:
Error: Unbound module Does_not_exist

but 4.03+beta1 and trunk do not:

Cannot find file /home/stephen/coding/moderror.ml.

Running ocamlc -i crashes with Not_found.

@vicuna
Copy link
Author

vicuna commented Apr 2, 2016

Comment author: @garrigue

Fixed in 4.03 by commit 6a45fef.

Just a bad line order...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants