Skip to content

Type checker complains when redefining type after include. #5498

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

Closed
cristianoc opened this issue Jul 2, 2022 · 1 comment
Closed

Type checker complains when redefining type after include. #5498

cristianoc opened this issue Jul 2, 2022 · 1 comment
Milestone

Comments

@cristianoc
Copy link
Collaborator

This gives a type error:

module A = {
  type t = int
}

module B = {
  include A
  type t = string
}
We've found a bug for you!
  tst.res:8:8

   6 │   include A
   7 │ 
   8 │   type t = string
   9 │ }
  10 │ 

@cristianoc cristianoc added this to the v10.0 milestone Jul 2, 2022
@cristianoc
Copy link
Collaborator Author

This behaves as expected.

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

No branches or pull requests

1 participant