Opened 17 years ago

Last modified 13 years ago

#141 closed defect (fixed)

No error messages nor warnings when loading a file that contains two or more models with the same name.

Reported by: donida Owned by: donida
Priority: critical Milestone:
Component: Command Prompt Environment Version:
Keywords: Cc: donida, Adrian Pop

Description

See comments

Change History (2)

comment:1 by donida, 17 years ago

The does not output error messages nor warnings when loading a file that contains two or more models with the same name (at the same level), for example:

package A

model B

Real a = 1;

end B;
model B

Real b = 3;

end B;

end A;

also in case that a declaration error is present, in the example below the statement are not identical:

package A

model B

Real a = 1;

end B;
model A

Real b = 3;

end B;

end A;

the compiler instantiates only model B, and without errors!!:

list()

package A

model B

Real a=1;

end B;

end A

comment:2 by Martin Sjölund, 13 years ago

Works in trunk

Note: See TracTickets for help on using tickets.