-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error message missing information about type inclusion #10399
Comments
I don't see a bug here:
You could fix foo.ml with
does that make sense? |
You are right, I overlooked what the compiler pointed at. I however expected a more informative message: I would like the compiler to tell me why c is not included in t, more precisely I would like it to tell me that row y of c is missing in t (of course my example is trivial, but the one I stumbled upon was more complex). That is what the compiler does when you incorrectly use subtyping for modules:
|
#10170 and it's incoming follow-up PR should support that |
Indeed. Thanks! |
Hi @antalsz |
Hi,
This looks like a bug in the error message:
I guess I understand why type c is not included in t. However, the last two lines are a bit confusing since the
Expected declaration
as well as theActual declaration
are empty. I would expect the compiler to tell me the methody
cannot be hidden in the type ofo
.Yours,
Judicaël Courant
The text was updated successfully, but these errors were encountered: