﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6221	The NF ignores a redeclare statement in a record containing a replaceable package and a function call from it	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/Buildings_7.0.0/files/Buildings_7.0.0_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.NominalCondition.err 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 [https://github.com/lbl-srg/modelica-buildings/blob/1c33517c61d57fd8bbda7a5265f0fe0a66f817b0/Buildings/Fluid/HeatExchangers/DXCoils/BaseClasses/NominalCondition.mo#L2 definition of record NominalCondition] indeed calls functions from a partial package, but that package is [https://github.com/lbl-srg/modelica-buildings/blob/1c33517c61d57fd8bbda7a5265f0fe0a66f817b0/Buildings/Fluid/HeatExchangers/DXCoils/BaseClasses/Examples/NominalCondition.mo#L6 redeclared to a non-partial one] in the model being compiled.

I guess something goes wrong in the propagation of the redeclared type."	defect	new	high	1.17.0	New Instantiation	1.16.0			
