﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2485	Redeclaration interpreted wrong with array dimensions	Christoph Höger	Adrian Pop	"The following testcase is legal (according to section 7.3 of the Modelica spec p.73, last line):

{{{
#!mo
model Test2
  model SomeComponent
    parameter Real x;
  end SomeComponent;
  
  model SomeOtherComponent
    parameter Real x;
  end SomeOtherComponent;
  
  model User1
    replaceable SomeComponent[3] c(x = {1,2,3});
  end User1;
  
  model User2
    User1 u(redeclare SomeOtherComponent c);
  end User2;
  
  
  User2 u;
  
  parameter Real x = u.u.c[3].x;
  
end Test2;
}}}

omc rejects it because it treats the redeclaration literally. 

As a side-note: omc's interpretation of the redeclaration is an incompatible modification anyway (since X is never a subtype of X[:])."	defect	closed	high	1.16.0	Frontend	trunk	fixed		
