Opened 4 years ago
Closed 4 years ago
#5944 closed enhancement (fixed)
Uniontype support for constants
Reported by: | johti17 | Owned by: | johti17 |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | MetaModelica | Version: | |
Keywords: | Cc: | adrpo, perost |
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 Changed 4 years ago by johti17
- Summary changed from Uniontypes does not support constants to Uniontypes support for constants
comment:2 Changed 4 years ago by johti17
comment:3 Changed 4 years ago by johti17
- Resolution set to fixed
- Status changed from new to closed
- Summary changed from Uniontypes support for constants to Uniontype support for constants
Note: See
TracTickets for help on using
tickets.
Fixed in https://github.com/OpenModelica/OpenModelica/commit/001aa6daf59920631c9d5f3ca914743b823ed9da