﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2613	combined modification and redeclaration	DanielH	Per Östlund	"I reported this on the forum
[https://openmodelica.org/index.php/forum/topic?id=1152]
but I didn't get an answer so I report it here because I think it's important.

consider the following:


{{{
model M1
  parameter Real a = 1;
  parameter Real b = 1;
end M1;

model M0
  parameter Real a = 0;
  parameter Real b = 0;
end M0;

model N
  replaceable M0 m;
end N;

model B
  N n(m.a = 3, redeclare M1 m, m.b = 3);
end B;
}}}

when I simulate model B, I get
n.m.a = 3
n.m.b = 1

I think it's wrong because the order of modification (inside one declaration) should not matter.
"	defect	closed	high	1.13.0	New Instantiation	trunk	fixed	redeclaration, modification	
