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

merge precondition message: Nested decl alias #4983

Closed
Tracked by #4928
aryairani opened this issue May 20, 2024 · 0 comments · Fixed by #5032
Closed
Tracked by #4928

merge precondition message: Nested decl alias #4983

aryairani opened this issue May 20, 2024 · 0 comments · Fixed by #5032

Comments

@aryairani
Copy link
Contributor

aryairani commented May 20, 2024

Nested decl alias

A decl cannot be aliased within the namespace of another of its aliased.

Alice's branch:

structural type A = B Nat | C Nat Nat
structural type A.inner.X = Y Nat | Z Nat Nat
project/alice> names A

  Type
  Hash:  #65mdg7015r
  Names: A A.inner.X
  
  Tip: Use `names.global` to see more results.

Bob's branch:

bob : Nat
bob = 100
project/alice> merge /bob

  On project/alice, the type A.inner.X is an alias of A. Type
  aliases cannot be nested. Please make them disjoint before
  merging.


Maybe:

On project/alice, the type A.inner.X is an alias of A. I'm not able to perform a merge when a type exists nested under an alias of itself. Please separate them or delete one copy, and then try merging again.

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

Successfully merging a pull request may close this issue.

1 participant