Opened 5 years ago

Closed 5 years ago

#5944 closed enhancement (fixed)

Uniontype support for constants

Reported by: John Tinnerholm Owned by: John Tinnerholm
Priority: high Milestone: 1.16.0
Component: MetaModelica Version:
Keywords: Cc: Adrian Pop, Per Östlund

Description

Background:
Currently, it is not possible to write

uniontype Foo
  constant bar;
  function fBar
  end fBar;
end Foo;

This has lead to the the following pattern, mostly in the New Frontend:

package P_Foo
constant bar;
uniontype Foo
<Every thing else>
end Foo;
end P_Foo;

The purpose of this ticket is to implement support for constants in the new frontend

Change History (3)

comment:1 by John Tinnerholm, 5 years ago

Summary: Uniontypes does not support constantsUniontypes support for constants

comment:3 by John Tinnerholm, 5 years ago

Resolution: fixed
Status: newclosed
Summary: Uniontypes support for constantsUniontype support for constants
Note: See TracTickets for help on using tickets.