fpc/tests/webtbs/tw11431.pp
paul fa41b6ffe3 compiler: allow generic classes to derive from generic classes and generic interfaces
- change id_type to single_type in readImplementedInterfacesAndProtocols to allow use of interface specializations inside class parent block
  - change single_type boolean arguments to set, add stoParseClassParent option to that set
  - move parse_generic variable assignment from parse_object_members to outer routine to setup it before parsing class parents
  - return paticular generic in generate_specialization instead of undefineddef to pass class/interface checks inside parent class block
  - add test for delphi mode
  - modify tw11431 to be syntatically correct

git-svn-id: trunk@16706 -
2011-01-04 18:20:40 +00:00

20 lines
241 B
ObjectPascal

{$mode objfpc}
unit tw11431;
interface
uses sysutils;
type
generic IGenericCollection<_T> = interface
end;
generic CGenericCollection<_T> = class(TInterfacedObject, specialize IGenericCollection<_T>)
end;
implementation
end.