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

Support diamond inheritance in TLA+ modules #74

Open
fhackett opened this issue Jun 20, 2018 · 0 comments
Open

Support diamond inheritance in TLA+ modules #74

fhackett opened this issue Jun 20, 2018 · 0 comments

Comments

@fhackett
Copy link
Contributor

TLA+ has a really rare scoping rule where including the exact same operator more than once is ok and does nothing. We currently would flag this as an error even though it should work in principle.

Example:

  • module A declares operator foo
  • module B extends module A
  • module C extends module A
  • module D extends modules B and C

D gets one unique copy of operator foo. As it is now, PGo would complain about a redefinition of foo.

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