Opened 5 years ago

Last modified 5 years ago

#5712 closed defect

The old frontend allows duplicate variables in protected sections input sections and output sections — at Initial Version

Reported by: johti17@… Owned by: John Tinnerholm
Priority: low Milestone: Future
Component: Frontend Version: v1.16.0-dev
Keywords: Semantics, MetaModelica, Modelica Cc:

Description

function fz

input Integer I;
input Integer I;

end fz;

function fy
protected

Integer I;
Integer I;

end fy;

function fx

input Integer I;
input Integer I;

protected

Integer X;
Integer X;

end fx;

Duplicate variables in protected section compiles, they are simply replaced in the backend. However, this allows modellers to write duplicate declarations in MetaModelica, and in Modelica.

It seems we allow it since the specification says that duplication is allowed during inheritance.

Change History (0)

Note: See TracTickets for help on using tickets.