summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2007-10-18 07:09:36 +0000
committerpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2007-10-18 07:09:36 +0000
commit47bd75ca214b8aaff1f42ccab33851c1fc09ac5f (patch)
treef1ea450fb0c807726e329a1ac4bfd6e40e7e771e /tests
parentfe6e8ecb6de096ed9392fb7850b56c4e149104f5 (diff)
downloadfpc-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.pp22
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.
+