G
YouTube TikTok Games
Skip to content

Support diamond inheritance in TLA+ modules #74

Open

Description

@fhackett

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions