program TNP; {$mode objfpc}{$H+} {$modeswitch nestedprocvars} type generic GenericA=class private type TIteratorfunction = procedure (const x:T) is nested; // Fatal: Syntax error, ";" expected but "is" found var private end; TSpec=specialize GenericA; begin end.