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

{ Gives under Kylix:

tw3930a.pp(22) Error: Incompatible types: 'TMyStringList' and 'TStringList'

}

{$ifdef fpc}
{$mode objfpc}
{$endif}
uses
  Classes;
  
type
  TMyStringList = type TStringlist;
  
var
  list : TMyStringList;

begin
  list:=TMyStringList.Create;
end.