﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3476	Replaceable package in connector causes translation error	Markus Dahl	somebody	"Validation of connectorTest.testModel will yield the following error:

  Translation Error: Variable Medium.nS not found in scope connectorTest.advConnector$something.

  Translation Error: Error occurred while flattening model connectorTest.testModel

{{{
package connectorTest
  partial package partialMedium
    constant Integer nX;
  end partialMedium;

  connector advConnector
    replaceable package Medium = connectorTest.OtherMedium;
    Modelica.SIunits.Pressure p;
    flow Modelica.SIunits.MassFlowRate m_flow;
    stream Modelica.SIunits.Mass C_flow[Medium.nS];
  end advConnector;

  package PackageExample
    extends connectorTest.partialMedium(nX = 2);
    final constant Integer nS = 3;
  end PackageExample;

  package OtherMedium
    final constant Integer nS = 3;
  end OtherMedium;

  model testModel
    replaceable package Medium = PackageExample;
    connectorTest.advConnector something(redeclare package Medium = Medium);
  end testModel;
end connectorTest;
}}}"	defect	closed	high	1.16.0	New Instantiation		fixed		Henrik Tidefelt
