diff --git a/components/codetools/tests/testfinddeclaration.pas b/components/codetools/tests/testfinddeclaration.pas index 8d5aa66245..d484035950 100644 --- a/components/codetools/tests/testfinddeclaration.pas +++ b/components/codetools/tests/testfinddeclaration.pas @@ -607,10 +607,18 @@ begin StartProgram; Add([ '{$mode objfpc}', + 'type', + ' TBird = class', + ' generic class function Fly(const AValues:array of T):T;', + ' end;', 'generic function RandomFrom(const AValues:array of T):T;', 'begin', ' Result:=Avalue[1];', 'end;', + 'generic class function TBird.Fly(const AValues:array of T):T;', + 'begin', + ' Result:=Avalue[1];', + 'end;', 'begin', ' i:=RandomFrom([1,2,3]);', 'end.',