Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-10

deprecated type, not always throwing hint, known issue?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

Below is a very small sample program.
Compiling it using a recent trunk version of fpc (younger than 2 weeks) does not give any hints.

If I uncomment the "var" block, there will be a hint, about TBar being deprecated.

But the usage of TBar in the procedure declaration is not hinted at. Is that intended? known to be a bug? not yet know (worth a report)? ----

program Project1;
{$mode objfpc}{$H+}
type
   TBar = Array of Integer deprecated;
//var
//  Bar: TBar;
procedure Foo(ABar: TBar);
begin
   writeln(ABar[0]);
end;
begin
   Foo(nil);
end.

Reply by email