tb0368.pp 232 B

1234567891011121314151617
  1. type
  2. tproc = procedure of object;
  3. trec = record
  4. l1,l2 : longint;
  5. end;
  6. var
  7. pfn : tproc;
  8. begin
  9. pfn:=nil;
  10. if (trec(pfn).l1<>0) or
  11. (trec(pfn).l2<>0) then
  12. begin
  13. writeln('Error!');
  14. halt(1);
  15. end;
  16. end.