mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-24 13:19:34 +01:00
ptype.pas:
* read_named_type:
allow specializations for pointers in Delphi modes
* single_type:
correctly handle forwarddefs; as we can only specialize generics if
they are completely defined (srsym<>nil) we don't need to return a
forward def, but instead return the specialized def itself
+ added tests to "test" instead of "webtbs" as no explicit tests were given
in the report
git-svn-id: trunk@21689 -
18 lines
164 B
ObjectPascal
18 lines
164 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tgeneric89;
|
|
|
|
{$mode delphi}
|
|
|
|
type
|
|
TTest<T> = record
|
|
|
|
end;
|
|
|
|
PTestLongInt = ^TTest<LongInt>;
|
|
PTestBoolean = ^TTest<Boolean>;
|
|
|
|
begin
|
|
|
|
end.
|