mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 20:09:33 +02:00

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