mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 10:38:14 +02:00
22 lines
284 B
ObjectPascal
22 lines
284 B
ObjectPascal
{ %FAIL }
|
|
|
|
{ this tests that the dummy symbol that is introduced for generic "overloads"
|
|
can not be used when it shouldn't be - Test 3 }
|
|
program tgeneric57;
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
type
|
|
TTest<T> = class
|
|
|
|
end;
|
|
|
|
var
|
|
t: TObject;
|
|
begin
|
|
t := TTest.Create;
|
|
end.
|
|
|