Opened 6 years ago

Closed 2 years ago

#3106 closed defect (fixed)

Check that only replaceable elements are redeclared

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

Description

Add a check that all redeclares are of elements that are declared replaceable.

Example:

model NameTest26
    model A
        B b;
    end A;
    
    model B
        Real x;
    end B;
    
    model C
        Real x = 1;
        Real y = x;
    end C;
    
    A a(redeclare C b);
end NameTest26;

This compiles without error.

Change History (3)

comment:1 Changed 6 years ago by Jesper Mattsson

Owner: set to Jesper Mattsson
Status: newassigned

comment:2 Changed 5 years ago by Jesper Mattsson

Still wrong as of r6721.

comment:3 Changed 2 years ago by Jesper Mattsson

Resolution: fixed
Status: assignedclosed

Fixed in other ticket.

Note: See TracTickets for help on using tickets.