summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbf/tw3343.pp
blob: 1e10a5f4d6c148d4d71ef7b72faef239a21d89bd (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
{ %fail }

{ Source provided for Free Pascal Bug Report 3343 }
{ Submitted by "Martin Schreiber" on  2004-10-06 }
{ e-mail:  }
program project1;

{$mode objfpc}{$H+}

uses
  Classes;

type

 itest = interface
 end;

 ttestclass = class(tinterfacedobject)
 end;

var
 testclass: ttestclass;
 testintf: itest;
begin
 testclass:= ttestclass.create;
 testintf:= itest(testclass);
 //fpc: project1.pas(21,13) Warning: Class types "ttestclass" and "itest" are not related
 //kylix: [Error] project1.pas(21): Incompatible types: 'itest' and 'ttestclass'
end.