Just noticed the following

program Project1;
var a: integer deprecated;
begin
  if 1 = a
  then writeln;
end.

project1.lpr(5,3) Warning: Symbol "a" is deprecated

Which points to the "then" on the line after "a" is used. (even if the lines a joined, it always points to the next token)
If a is declared as function, the message points to the begin of "a"

While absolutely minor, and not a problem => shall I put it in mantis?

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to