Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3247 closed defect (fixed)

Missing redeclare class modification

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: 1.9.3
Component: Frontend Version: trunk
Keywords: Cc:

Description (last modified by Adrian Pop)

Discussion on this here: m:#1685.

When flattening A.C:

package A
  model B
    model B2
        replaceable type P = Real;
        P p;
    end B2;
    B2 b2;
  end B;

  model C
    extends B(B2(redeclare type P = Integer));
    B2.P p;
  end C;  
end A;

we get:

class A.C
  Integer b2.p;
  Real p;
end A.C;

but Real p; should be Integer p;

Change History (4)

comment:1 by Adrian Pop, 10 years ago

Description: modified (diff)
Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r25277.

comment:3 by Adrian Pop, 10 years ago

Milestone: Future1.9.3

comment:4 by Adrian Pop, 10 years ago

Added test in r25286 and activated test in r25287.

Note: See TracTickets for help on using tickets.