Opened 4 years ago

Closed 4 years ago

#5968 closed enhancement (fixed)

Support for self recursive constants in Uniontypes

Reported by: johti17 Owned by: johti17
Priority: high Milestone: 1.16.0
Component: MetaModelica Version:
Keywords: uniontype, constants Cc: adrpo

Description

Ticket #5944 added support for constants in Uniontypes.
While this works for constants such as

uniontype UT
 constant Integer ICONST = 1;
 record R
 end R;
end UT;

It does not work with self recursive definitions, which currently work for function inputs and outputs.

For instance:

uniontype UT
 constant UT RCONST = R1();
 record R1
 end R1;

 record R2
 end R2;
end UT;

The goal of this ticket is to add this functionality

Change History (2)

comment:1 Changed 4 years ago by johti17

  • Cc adrpo added

comment:2 Changed 4 years ago by johti17

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.