Opened 17 years ago

Last modified 17 years ago

#1010 closed defect (fixed)

Compiler should report a syntax error on := in an equation section

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

Description

The compiler should report a syntax error at
y[1] := 0;

as it is in an equation section and := are not allowed there.
{{{model Bug

parameter Integer nin = 2;
parameter Integer nout = 2;
parameter Real A[:,:] = [1, 2; 3, 4];
Real u[nin];
Real y[nout];

equation

u = {1,2};
y = A*u;
y[1] := 0;

end Bug; }}}

Change History (0)

Note: See TracTickets for help on using tickets.