Opened 5 years ago
Closed 5 years ago
#5968 closed enhancement (fixed)
Support for self recursive constants in Uniontypes
Reported by: | John Tinnerholm | Owned by: | John Tinnerholm |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | MetaModelica | Version: | |
Keywords: | uniontype, constants | Cc: | Adrian Pop |
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 by , 5 years ago
Cc: | added |
---|
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/OpenModelica/OpenModelica/pull/890