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

builtin type as return type of function #752

Closed
kanigsson opened this issue Aug 25, 2021 · 0 comments · Fixed by #754
Closed

builtin type as return type of function #752

kanigsson opened this issue Aug 25, 2021 · 0 comments · Fixed by #754
Assignees
Labels
bug generator Related to generator package (SPARK code generation)

Comments

@kanigsson
Copy link
Collaborator

The following session:

package Empty_Ident is

  type My_Int is mod 2 ** 8;
   generic
      with function Output (X : My_Int) return Boolean;
   session Session with
      Initial => First,
      Final => Last
   is
     X : My_Int;
     Z : Boolean;
   begin
      state First is
      begin
        X := 1;
        Z := Output (X);
      transition
         then Last
      end First;

      state Last is null state;
   end Session;
end Empty_Ident;

produces an unhelpful error:

Parsing empty_ident.rflx
Processing Empty_Ident
id: error: empty identifier

I think the issues is with return types of functions. I will try to fix this.

@kanigsson kanigsson added bug generator Related to generator package (SPARK code generation) labels Aug 25, 2021
@kanigsson kanigsson self-assigned this Aug 25, 2021
@treiher treiher added this to To do in RecordFlux 0.6 via automation Aug 25, 2021
@treiher treiher moved this from To do to In progress in RecordFlux 0.6 Aug 25, 2021
@senier senier linked a pull request Aug 26, 2021 that will close this issue
@senier senier moved this from In progress to Under review in RecordFlux 0.6 Aug 26, 2021
jklmnn pushed a commit that referenced this issue Aug 31, 2021
RecordFlux 0.6 automation moved this from Under review to Merged Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug generator Related to generator package (SPARK code generation)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant