Opened 6 years ago

Closed 21 months ago

#3000 closed defect (fixed)

Redeclaration of record in record

Reported by: Jesper Mattsson Owned by: Jesper Mattsson
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

The following model is flattened incorrectly:

model M
	record R1
		replaceable parameter RInnerBase r;
	end R1;
	record RInnerBase
		parameter Real a = 1;
	end RInnerBase;
	record RInner
		extends RInnerBase(a = 3);
	end RInner;
	parameter R1 r1(redeclare RInner r(a = 4));
end M;

The flattened model looks as follows:

fclass M
 parameter M.R1 r1;

public
 record M.RInnerBase
  parameter Real a = 1 /* 1 */;
 end M.RInnerBase;

 record M.R1
  parameter M.RInnerBase r;
 end M.R1;

 record M.RInner
  parameter Real a = 3 /* 3 */;
 end M.RInner;

end D;

Change History (5)

comment:1 Changed 6 years ago by Tove Bergdahl

Milestone: 1.11.x1.12.x
Owner: set to Jesper Mattsson
Status: newassigned

comment:2 Changed 6 years ago by Tove Bergdahl

Milestone: 1.12.xPending

comment:3 Changed 5 years ago by Jesper Mattsson

Still wrong as of r6721.

comment:4 Changed 2 years ago by Jesper Mattsson

Still wrong?

comment:5 Changed 21 months ago by Jesper Mattsson

Resolution: fixed
Status: assignedclosed

This has been fixed in other tickets.

Note: See TracTickets for help on using tickets.