﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2835	Overconstrained connector support for types extending basic types	Adrian Pop	Adrian Pop	"Currently we only support overconstrained connectors which are records (become T_COMPLEX) and not this kind of connectors (from PowerSystems library) which extend from basic types:
{{{#!mo
      type ReferenceAngle  
        extends .Modelica.SIunits.Angle;

        function equalityConstraint  
          input ReferenceAngle[:] theta1;
          input ReferenceAngle[:] theta2;
          output Real[0] residue;
        algorithm
          for i in 1:size(theta1, 1) loop
            assert(abs(theta1[i] - theta2[i]) < Modelica.Constants.eps, ""angles theta1 and theta2 not equal over connection!"");
          end for;
        end equalityConstraint;
      end ReferenceAngle;

    connector Terminal  
      replaceable package PhaseSystem = PhaseSystems.PartialPhaseSystem;
      PhaseSystem.Voltage[PhaseSystem.n] v;
      flow PhaseSystem.Current[PhaseSystem.n] i;
      PhaseSystem.ReferenceAngle[PhaseSystem.m] theta if PhaseSystem.m > 0;
    end Terminal;
}}}"	defect	closed	high	1.9.1	Frontend	trunk	fixed		
