Skip to content

"module is incompatible" error with iterated theory clones #292

Closed

Description

@chdoc

I would have expected the following to work, but I get anther "module is incompatible" error.

(* abstract theories *)

abstract theory AT0.
type a,b.
const c : b.

module M = { 
  proc f (x:a) : b = { return c; }
}.
end AT0.

abstract theory AT1.
  clone import AT0 as T0.
end AT1.

abstract theory AT2.
  clone import AT1 as T1. 
end AT2.

(* instances *)

clone AT0 as MyT0 with 
  type a <= int,
  type b <= int,
  op c <= 0.

clone import AT1 as MyT1
  with theory T0 <= MyT0.

clone AT2 as MyA2 with 
  theory T1 <- MyT1.
(* fails with: module `T1.T0.M` is incompatible *)

Activity

  1. added a commit that references this issue on Oct 21, 2022
    9e7229c
  2. chdoc commented on Oct 26, 2022

    @chdoc
    ContributorAuthor

    Commit 9e7229c does not (fully) fix the issue.

  3. reopened this on Oct 26, 2022
  4. added 2 commits that reference this issue on Dec 13, 2022
    2ca6af6
    388c28f
  5. added a commit that references this issue on Dec 14, 2022
    dc8494c
  6. added 2 commits that reference this issue on Jun 21, 2024
    d3da5af
    d1dc434
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