summaryrefslogtreecommitdiff
path: root/tests/test/toperator93.pp
blob: de3b37b015d55ec2aedd5140c539e5bd381ee68e (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
{ %NORUN }

program toperator93;

{$mode delphi}

type
  TString80 = String[80];
  TString90 = String[90];
  TString40 = String[40];
  TString100 = String[100];

  TTest = record
    class operator Implicit(const aArg: TTest): TString80;
  end;

class operator TTest.Implicit(const aArg: TTest): TString80;
begin

end;

var
  t: TTest;
  s: TString80;
begin
  s := t;
end.