tw9894b.pp 446 B

12345678910111213141516171819202122232425262728293031323334353637
  1. { %fail }
  2. {$mode delphi}
  3. unit tw9894b;
  4. interface
  5. Type
  6. TMyInteger = Class
  7. Value : Integer;
  8. end;
  9. TMyRec2 = record
  10. MyInteger : TMyInteger;
  11. end;
  12. TMyRec = record
  13. MyRec2 : TMyRec2;
  14. end;
  15. TMyClass = Class
  16. FMyRec : TMyRec;
  17. Private
  18. Procedure DoSomething;
  19. Property MyRec : TMyRec Read FMyRec;
  20. end;
  21. Implementation
  22. Procedure TMyClass.DoSomething;
  23. begin
  24. MyRec.MyRec2.MyInteger:=TMyInteger(nil);
  25. end;
  26. end.