Opened 3 years ago

#5026 new defect

Constant lookup from short class declarations

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

Description

The Modelica specification ticket Modelica:#2013 contins a test model where constant component lookup fails in JModelica.org.

class C
  constant Integer y = B.z; //== .C.B.z == 21
  class B
    constant Integer z = 21; 
  class A
    constant Integer x = y + z; // .C.y + .C.B.z == .C.B.z + .C.B.z == 21 + 21
  end A;
end B;
end C;

class D
 extends C.B(z=2);
 constant Integer result = A.x; // == .D.A.x == .C.y. + .D.z == .C.B.z + .D.z == 23 ?
end D;

Change History (0)

Note: See TracTickets for help on using tickets.