mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 21:29:43 +02:00

- multiple symbols with a similar name - hint directives - inline specializations git-svn-id: branches/svenbarth/generics@17542 -
27 lines
341 B
ObjectPascal
27 lines
341 B
ObjectPascal
{ %NORUN }
|
|
|
|
{ in mode Delphi generic types might be overloaded - here: interface only
|
|
Note: This tests a different code path than in the compiler than tgeneric38! }
|
|
program tgeneric44;
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
type
|
|
TTest<T> = interface
|
|
|
|
end;
|
|
|
|
TTest = interface
|
|
|
|
end;
|
|
|
|
TTest<T, S> = interface
|
|
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|