fpc/tests/webtbs/tw26482.pp
svenbarth 856ae9d3cf Fix for Mantis .
pgenutil.pas, generate_specialization:
  * also search for the generic type in general if it was previously found in a record/class as there might be a non-generic type (or one with a different number of parameters) defined elsewhere

+ added test

git-svn-id: trunk@28244 -
2014-07-20 15:47:18 +00:00

26 lines
350 B
ObjectPascal

unit tw26482;
{$mode delphi}
interface
type
TEnumerator<T> = class
end;
TList<T> = class
public
type
TEnumerator = class(TObject);
protected
function DoGetEnumerator: TEnumerator<T>;
end;
implementation
function TList<T>.DoGetEnumerator: TEnumerator<T>; // Error: Identifier not found "TEnumerator$1"
begin
end;
end.