Ticket #8 (closed defect: fixed)
Illegal code in Utilities
| Reported by: | HansOlsson | Owned by: | otter |
|---|---|---|---|
| Priority: | normal | Milestone: | MSL3.0RC1 |
| Component: | Utilities | Version: | 3.0RC1 |
| Severity: | Keywords: | ||
| Cc: | Hide ticket: |
Description (last modified by dietmarw) (diff)
The code in source:/trunk/Modelica/Utilities/Examples.mo
has
function expression '''protected ''' '''encapsulated''' function term "Evaluate term of an expression" import Modelica.Utilities.Examples.expression.primary; ... end term; '''encapsulated''' function primary ... end primary; ... end expression;
This uses import of item that is not in a package, and furthermore the item is protected. Remove 'encapsulated', and 'import' and it will automatically work.
Issue is also present in 2.2.2
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
