summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbf/tw9894b.pp
blob: ff333e5087b50c635817df93f7d9fd73376bbc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ %fail }

{$mode delphi}

unit tw9894b;

interface

Type
  TMyInteger = Class
    Value : Integer;
  end;

  TMyRec2 = record
    MyInteger : TMyInteger;
  end;

  TMyRec = record
    MyRec2 : TMyRec2;
  end;

  TMyClass = Class
    FMyRec : TMyRec;
  Private
    Procedure DoSomething;
    Property MyRec : TMyRec Read FMyRec;
  end;

Implementation

Procedure TMyClass.DoSomething;

begin
  MyRec.MyRec2.MyInteger:=TMyInteger(nil);
end;

end.