mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 11:22:50 +02:00
21 lines
250 B
ObjectPascal
21 lines
250 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tw24458;
|
|
|
|
{$mode delphi}
|
|
|
|
type
|
|
TA<T: class> = class
|
|
public
|
|
procedure Foo(const AValue: T);
|
|
end;
|
|
|
|
procedure TA<T>.Foo(const AValue: T);
|
|
begin
|
|
AValue.Free; // Error: identifier idents no member "Free"
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|