Opened 13 years ago

Last modified 7 years ago

#1736 closed defect

Undeclared components in if equation's false branch are not checked — at Initial Version

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc: Peter Aronsson

Description

The following model doesn't produce any error message when checking (v1.8.0).

model test

parameter Boolean bool=false;
Real x;

equation

if bool then

der(x)=B;

else

der(x)=4;

end if;

end test;

It should report an error that B is undeclared!

Change History (0)

Note: See TracTickets for help on using tickets.