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