mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00

- multiple symbols with a similar name - hint directives - inline specializations git-svn-id: branches/svenbarth/generics@17542 -
29 lines
362 B
ObjectPascal
29 lines
362 B
ObjectPascal
{ %NORUN }
|
|
|
|
{ in mode Delphi generic types might be overloaded - here: a mix }
|
|
program tgeneric48;
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
type
|
|
TTest = class
|
|
end;
|
|
|
|
TTest<T> = record
|
|
end;
|
|
|
|
TTest<T, S> = interface
|
|
end;
|
|
|
|
TTest<T, S, R> = procedure;
|
|
|
|
TTest<T, S, R, Q> = array of Integer;
|
|
|
|
TTest<T, S, R, Q, P> = procedure of object;
|
|
|
|
begin
|
|
|
|
end.
|