{ %NORUN } program tw39826; {$mode delphi} {$modeswitch functionreferences} {$modeswitch anonymousfunctions} type TGR1 = record public type TGRUpdateProc = reference to procedure (var ARec: TGR1); public Val: T; end; var gr1: TGR1; begin end.