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

better error message for missing join? #225

Closed
affeldt-aist opened this issue Apr 14, 2021 · 0 comments
Closed

better error message for missing join? #225

affeldt-aist opened this issue Apr 14, 2021 · 0 comments

Comments

@affeldt-aist
Copy link
Member

A missing join gives rise to an error message such that

Error:
You must declare the current class indt «axioms_» before
indt «Blah.axioms_»

that suggests that the situation could be fixed by swapping declarations whereas the
explicit declaration of a new structure seems required.

If there is nothing to improve than this might be considered as a FAQ entry @gares .

This is the case for example for the following script:

From HB Require Import structures.

HB.mixin Record isTop M := { }.
HB.structure Definition Top := {M of isTop M}.

HB.mixin Record isA1 M of Top M := { }.
HB.structure Definition A1 := {M of isA1 M & isTop M}.

HB.mixin Record isA2 M of Top M := { }.
HB.structure Definition A2 := {M of isA2 M & isTop M}.

HB.mixin Record isB1 M of A1 M := { }.
HB.structure Definition B1 := {M of isB1 M & }.

HB.mixin Record isB2 M of A2 M := { }.
HB.structure Definition B2 :=  {M of isB2 M & isA2 M }.

HB.structure Definition B2A1 := {M of B2 M & A1 M }.

HB.structure Definition A2B1 := {M of A2 M & B1 M }.

which corresponds to the following hiearchy:

smaller

that is lacking the following structure:

HB.structure Definition A1A2 := {M of isA1 M & isA2 M}.
gares added a commit that referenced this issue Apr 16, 2021
gares added a commit that referenced this issue Apr 16, 2021
gares added a commit that referenced this issue Apr 16, 2021
gares added a commit that referenced this issue Apr 16, 2021
@gares gares closed this as completed in bcf0b42 Apr 16, 2021
gares added a commit that referenced this issue Apr 16, 2021
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