Opened 14 years ago

Last modified 14 years ago

#1492 closed defect (fixed)

The final prefix is not set for classes in classes

Reported by: Jens Frenkel Owned by: Jens Frenkel
Priority: high Milestone:
Component: Version:
Keywords: Cc: Frenkel TUD, Adrian Pop

Description

The final attribute is not propagated for classes in classes


The model


package Parts
model A
final parameter Real a = 4;
end A;
end Parts;

model A
final parameter Real a = 3;
end A;

model Test
Parts.A pa;
A ca;
final parameter Real a = 2;
end Test;


should have three final parameters but the compiler generates:


class Test
    parameter Real pa.a = 4.0;
    parameter Real ca.a = 3.0;
    final parameter Real a = 2.0;
end Test;
 

Change History (1)

comment:1 by Per Östlund, 14 years ago

Fixed in revision 8879.

Note: See TracTickets for help on using tickets.