mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 13:19:27 +02:00
+ support for generic forward declarations fixes #39581, so add a test for it
This commit is contained in:
parent
2a5023508a
commit
c14c3ec98f
35
tests/webtbs/tw39581.pp
Normal file
35
tests/webtbs/tw39581.pp
Normal file
@ -0,0 +1,35 @@
|
||||
{ %NORUN }
|
||||
|
||||
program tw39581;
|
||||
|
||||
{$Mode Delphi} {$H+}
|
||||
|
||||
Type
|
||||
TImplClass<P> = class;
|
||||
|
||||
iLinkingIntf<P> = interface
|
||||
procedure NestedCall(const DataFrom: TImplClass<P>);
|
||||
end;
|
||||
|
||||
(* Компиляция проекта, цель: Project1.exe: Код завершения 1, ошибок: 1
|
||||
Project1.pas(9,55) Error: Internal error 2012101001
|
||||
*)
|
||||
|
||||
{ TImplClass }
|
||||
|
||||
TImplClass<P> = class( TInterfacedObject, iLinkingIntf<P> )
|
||||
protected
|
||||
procedure NestedCall(const DataFrom: TImplClass<P> );
|
||||
end;
|
||||
|
||||
{ TImplClass }
|
||||
|
||||
procedure TImplClass<P>.NestedCall(const DataFrom: TImplClass<P>);
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user