1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{ %fail} program terecs9; {$mode delphi} // don't allow refence owner type for record and object fields and properties type TFoo = record var FFoo: TFoo; end; TBar = record var FBar: TBar; end; begin end.