mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-25 17:19:15 +02:00

pgenutils.pas, check_generic_constraints: * correctly handle forward defs if the constraint is either a single IInterface/IUnknown or a TObject/class + added tests git-svn-id: trunk@28601 -
24 lines
275 B
ObjectPascal
24 lines
275 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tgenconstraint40;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
ISomeInterface = interface
|
|
end;
|
|
|
|
generic TGeneric<T: ISomeInterface> = class
|
|
end;
|
|
|
|
ITest = interface;
|
|
|
|
TGenericITest = specialize TGeneric<ITest>;
|
|
|
|
ITest = interface(ISomeInterface)
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|