fpc/tests/webtbs/tw9509.pp
peter a6eb5d839b * allow types in interfaces
git-svn-id: trunk@8840 -
2007-10-18 07:09:36 +00:00

23 lines
376 B
ObjectPascal

{$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.