﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5356	Replaceable error with new FrontEnd	Niklas Worschech	Per Östlund	"For the following model 
{{{#!mo
package FrontEnd
  model Test
    Model1 model1_1(redeclare model icon = Icon2)
      annotation (Placement(transformation(extent={{-24,-2},{-4,18}})));
    annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(
            preserveAspectRatio=false)));
  end Test;

  model Model1
    replaceable model icon = FrontEnd.Icon1 constrainedby FrontEnd.BaseIcon annotation(choicesAllMatching = true);

    extends icon;
    annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(
            preserveAspectRatio=false)));
  end Model1;

  model Icon1
    extends FrontEnd.BaseIcon;
    annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={Text(
            extent={{0,-100},{0,100}},
            lineColor={0,128,255},
            fillColor={255,255,255},
            fillPattern=FillPattern.None,
            textString=""1"")}),                                     Diagram(coordinateSystem(
            preserveAspectRatio=false)));
  end Icon1;

  model Icon2
    extends FrontEnd.BaseIcon;
    annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={Text(
            extent={{0,-100},{0,100}},
            lineColor={0,128,255},
            fillColor={255,255,255},
            fillPattern=FillPattern.None,
            textString=""2"")}),                                     Diagram(coordinateSystem(
            preserveAspectRatio=false)));
  end Icon2;

  model BaseIcon
    annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={Ellipse(
            extent={{-100,100},{100,-100}},
            fillColor={255,255,255},
            fillPattern=FillPattern.Solid,
            lineColor={0,0,0})}), Diagram(coordinateSystem(preserveAspectRatio=false)));
  end BaseIcon;
end FrontEnd;

}}}


the new FrontEnd reports the error:
'Error: Class icon in extends icon is replaceable.'
If this is a error in the model, but with the old FrontEnd it works or is this a problem with the new FrontEnd?
"	defect	closed	high	Future	New Instantiation		fixed	replaceable, new FrontEnd	Florian.Werner@…
