diff options
author | peter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-10-18 07:09:36 +0000 |
---|---|---|
committer | peter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-10-18 07:09:36 +0000 |
commit | 47bd75ca214b8aaff1f42ccab33851c1fc09ac5f (patch) | |
tree | f1ea450fb0c807726e329a1ac4bfd6e40e7e771e /tests | |
parent | fe6e8ecb6de096ed9392fb7850b56c4e149104f5 (diff) | |
download | fpc-47bd75ca214b8aaff1f42ccab33851c1fc09ac5f.tar.gz |
* allow types in interfaces
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@8840 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/webtbs/tw9509.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/webtbs/tw9509.pp b/tests/webtbs/tw9509.pp new file mode 100644 index 0000000000..0d9fc5e4cd --- /dev/null +++ b/tests/webtbs/tw9509.pp @@ -0,0 +1,22 @@ +{$mode objfpc} +{$interfaces corba} +type + generic IList<TElem> = interface + end; + + generic ISet<TElem> = interface + end; + + generic IMap<TKey, TValue> = interface + + type + TKeySet = specialize ISet<TKey>; // wrong syntax? + TValueSet = specialize IList<TValue>; // wrong syntax? + + function Keys : TKeySet; + function Values : TValueSet; + end; + +begin +end. + |