Opened 20 months ago

Last modified 19 months ago

#5581 new defect

Replaceable & redeclare short class decls can become InstSimpleShortClassDecl

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


Short class declarations that are replaceable or redeclare can become InstSimpleShortClassDecl if they have no modifications. This is a big problem, since we don't see things like constraining type in this case.

Example, that should give an error:

model Test
    model A
    end A;
    model B
        Real x;
    end B;
    model C
        replaceable model D = A constrainedby B;
        D d;
    end C;
    C c;
end Test;

Change History (1)

comment:1 Changed 19 months ago by Jesper Mattsson

This might affect #5088.

Note: See TracTickets for help on using tickets.