Opened 5 years ago
Closed 5 years ago
#5992 closed defect (fixed)
Singelton uniontypes containing non-singelton uniontypes are not treated as singeltons
Reported by: | John Tinnerholm | Owned by: | John Tinnerholm |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | MetaModelica | Version: | |
Keywords: | Cc: |
Description
Singelton uniontypes containing a non singleton uniontype is not treated as a singelton:
uniontype UT record R Real RI; end R; function f output Real ro; protected UT tmpUT = R(1.0); algorithm ro := tmpUT.RI; end f; uniontype UT2 record R1 end R1; record R2 end R2; end UT2; end UT;
This is typically not an issue, but it occurs in the new frontend where uniontypes are used at the top level and contains non-singeltons within them.
Trying to access the component R at the top level currently results in
Error: Internal error Types.getMetaRecordFields called on a non-singleton uniontype: UT
Change History (1)
comment:1 by , 5 years ago
Milestone: | Future → 1.16.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Adjusted in:
https://github.com/OpenModelica/OpenModelica/commit/6d60ea0b5dcbca8a32be98e5e5400b3ec0b9de32