uw32108.pp 319 B

12345678910111213141516171819202122232425262728293031323334
  1. unit uw32108;
  2. {$mode delphi}
  3. interface
  4. function getTFooF: Integer;
  5. implementation
  6. type
  7. { TFoo }
  8. TFoo = class
  9. class var f: integer;
  10. class constructor Create;
  11. end;
  12. { TFoo }
  13. class constructor TFoo.Create;
  14. begin
  15. f := 1;
  16. end;
  17. function getTFooF: Integer;
  18. begin
  19. Result := TFoo.f;
  20. end;
  21. begin
  22. end.