Opened 17 years ago

Last modified 14 years ago

#142 closed defect (fixed)

Wrong modifiers do not trigger any error.

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

Description

See comment.

Change History (2)

comment:1 by donida, 17 years ago

Please try to simulate Test.B: parameter c is not present in model B, however, the compiler just skips the modifier without generating any error. This is very dangerous, because if you mis-spell the modifier name (I actually wanted to write a = 2, but typed c = 2 instead), you get no modification, without any warning from the compiler.

package Test

model A

parameter Real a = 1;
Real b = a;

end A;

model B extends A(c = 2);
end B;

end Test;

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

Works in trunk.

Note: See TracTickets for help on using tickets.