mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 05:48:34 +02:00

pgenutil.pas: * parse_generic_parameters & insert_generic_parameter_types: create the type parameter symbols as strict private instead of public (which is the default visiblity) * adjusted two tests which relied on this behavior (that's why I fixed the type aliases previously) + added test git-svn-id: trunk@29486 -
35 lines
356 B
ObjectPascal
35 lines
356 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tw25917;
|
|
|
|
{$APPTYPE CONSOLE}
|
|
{$MODE DELPHI}
|
|
|
|
type
|
|
TA<T1, T2> = class
|
|
end;
|
|
|
|
TB<T1, T2> = class
|
|
private
|
|
type
|
|
T3 = record end;
|
|
|
|
TC = class(TA<T1, T3>)
|
|
public
|
|
procedure Foo;
|
|
end;
|
|
end;
|
|
|
|
procedure TB<T1, T2>.TC.Foo;
|
|
var
|
|
L: TB<T1, T2>.T3;
|
|
begin
|
|
end;
|
|
|
|
var
|
|
x: TB<Pointer, Pointer>;
|
|
|
|
begin
|
|
end.
|
|
|