Opened 4 years ago
Last modified 4 years ago
#6221 closed defect
The NF ignores a redeclare statement in a record containing a replaceable package and a function call from it — at Initial Version
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | 1.16.0 |
Keywords: | Cc: | Michael Wetter |
Description
Please check Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.NominalCondition. The NF complains that
[Buildings 7.0.0/Fluid/HeatExchangers/DXCoils/BaseClasses/NominalCondition.mo:36:3-40:32:writable] Error: Medium is partial, name lookup is not allowed in partial classes.
This shouldn't be the case: the definition of record NominalCondition indeed calls functions from a partial package, but that package is redeclared to a non-partial one in the model being compiled.
I guess something goes wrong in the propagation of the redeclared type.
Note:
See TracTickets
for help on using tickets.