﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4555	Redundantly inherited parameters (diamond inheritance) appear multiple times in parameters dialog of instantiated model	anonymous	Adeel Asghar	"When a model is built by extending superclasses with diamond inheritance, the resulting model will show multiple instances of the same inherited parameter in its parameters dialog. A minimal working example is shown below. Open the model mwe_duplicate_parameters in OMEdit and open the Parameters dialog of thesubmodel.

{{{
model mwe_duplicate_parameters
  model submodel
    extends extendme1;
    extends extendme2;
  end submodel;

  model extendme1
    extends extendme0;
  end extendme1;

  model extendme2
    extends extendme0;
  end extendme2;

  mwe_duplicate_parameters.submodel thesubmodel annotation(
    Placement(
      visible = true, 
      transformation(
        origin = {0, 0}, 
        extent = {{-10, -10}, {10, 10}}, 
        rotation = 0)));

  model extendme0
    parameter Real p;
  end extendme0;

  annotation(
    Icon(coordinateSystem(grid = {1, 1})));
end mwe_duplicate_parameters;

}}}"	defect	new	high		OMEdit			diamond, inheritance, parameters, dialog	
