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 , 5 years ago
Summary: | Uniontypes does not support constants → Uniontypes support for constants |
---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | Uniontypes support for constants → Uniontype support for constants |
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/OpenModelica/OpenModelica/commit/001aa6daf59920631c9d5f3ca914743b823ed9da