{%NORUN} {$mode objfpc} {$modeswitch implicitfunctionspecialization} { Test generic methods } program timpfuncspez7; type TMyClass = class generic class procedure Call(msg: T); generic procedure DoThis(msg: T); end; generic class procedure TMyClass.Call(msg:T); begin end; generic procedure TMyClass.DoThis(msg:T); begin end; var obj:TMyClass; begin TMyClass.Call('Hello World'); obj := TMyClass.create; obj.DoThis(1); end.