summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw2198.pp
blob: ce7f1906afb7634af69cc90f736004838ad6091b (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
{ Source provided for Free Pascal Bug Report 2198 }
{ Submitted by "Sebastian Günther" on  2002-10-23 }
{ e-mail: sg@freepascal.org }

{$mode objfpc}

type
  TTest = class
    procedure x;
    procedure x(i: Integer);
  end;

procedure TTest.x;
const s = 'Test1';
begin
  writeln(s);
end;

procedure TTest.x(i: Integer);
const s = 'Test2';
begin
  writeln(s);
end;

var
  t : ttest;
begin
  t:=ttest.create;
  t.x;
  t.x(1);
  t.free;
end.