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

[New module system] Incorrect error on nested instantiation #1484

Closed
yav opened this issue Dec 20, 2022 · 0 comments
Closed

[New module system] Incorrect error on nested instantiation #1484

yav opened this issue Dec 20, 2022 · 0 comments
Assignees
Labels
bug Something not working correctly parameterized modules Related to Cryptol's parameterized modules

Comments

@yav
Copy link
Member

yav commented Dec 20, 2022

The following reports an error that P does not implement x but it does. The whole thing appears to work if the declaration of submodule M is outside of X

interface submodule I where
  x : [8]

submodule F where
  import interface submodule I
  y = x + 1

submodule P where
  x = 11

submodule X where
  submodule M = submodule F { submodule P }
  import submodule M

  z = y
@yav yav self-assigned this Dec 20, 2022
@yav yav added parameterized modules Related to Cryptol's parameterized modules bug Something not working correctly labels Dec 20, 2022
yav added a commit that referenced this issue Dec 20, 2022
@yav yav closed this as completed Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something not working correctly parameterized modules Related to Cryptol's parameterized modules
Projects
None yet
Development

No branches or pull requests

1 participant