diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-03-14 18:27:01 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-03-14 18:27:01 +0000 |
commit | cc17ac84c43f4b6937a1dda9edf76363480f069b (patch) | |
tree | b346f773839ca9712d1028698dfa5e4335399503 /tests/webtbf | |
parent | ad0ec8d3af1d7dc2beab1feb2092ad8dcad64c17 (diff) | |
download | fpc-cc17ac84c43f4b6937a1dda9edf76363480f069b.tar.gz |
* fixed test according to Kylix behaviour (which means current
FPC behaviour is wrong)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@6851 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/webtbf')
-rw-r--r-- | tests/webtbf/tw3930a.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/webtbf/tw3930a.pp b/tests/webtbf/tw3930a.pp new file mode 100644 index 0000000000..110bff83f7 --- /dev/null +++ b/tests/webtbf/tw3930a.pp @@ -0,0 +1,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. + + |