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

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

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

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Apr 2, 2016

Comment author: @garrigue

Fixed in 4.03 by commit 6a45fef.

Just a bad line order...

@vicuna vicuna closed this Sep 24, 2017

@vicuna vicuna added the typing label Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.