View Issue Details

IDProjectCategoryView StatusLast Update
0026030FPCCompilerpublic2018-03-29 17:27
ReporterMaciej Izak Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.7.1 
Summary0026030: Class type expected, but got "<erroneous type>" error in non generic descendant class
DescriptionProbably related to http://bugs.freepascal.org/view.php?id=24285

I can't compile attached code:
------
{$MODE DELPHI}

type
  TA<T1, T2> = class(TObject);
  TA<T> = class(TA<T, Byte>);
  TA = class(TA<Byte>); // Error: class type expected, but got "<erroneous type>"

begin
end.
Tagsgenerics, partial specialization
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0027206 resolvedSven Barth [Patch] Christmas gift by FreeSparta : Generics.Collections 

Activities

Maciej Izak

2014-04-15 20:59

reporter  

rv1_01.lpr (148 bytes)

Thaddy de Koning

2018-03-29 17:27

reporter   ~0107465

Since it was touched:
This works now:
{$MODE DELPHI}
type
  TA<T1, T2> = class(TObject);
  TA<T> = class(TA<T, Byte>);
  TB = class(TA<Byte>); // but fails if TB called TA.
begin
end.

Issue History

Date Modified Username Field Change
2014-04-15 20:59 Maciej Izak New Issue
2014-04-15 20:59 Maciej Izak File Added: rv1_01.lpr
2014-04-24 22:20 Maciej Izak Tag Attached: generics
2014-05-02 10:24 Sven Barth Tag Attached: partial specialization
2015-01-06 13:56 Sven Barth Relationship added related to 0027206
2018-03-29 17:27 Thaddy de Koning Note Added: 0107465