{ %FAIL } program tgenfunc24; {$mode delphi} type TTest = class public type Test = class end; public procedure Test; end; procedure TTest.Test; begin end; begin end.