{ %FAIL } { constraints must not be repeated in the definition } program tgenfunc13; {$mode objfpc} type TTest = class generic procedure Test; end; generic procedure TTest.Test; begin end; begin end.