Generics regression, Identifier not found "TEnumerator$1".
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
All works fine in rev 27327 but in rev 28152 compiler raise Fatal error:
unit Generics.Collections;
{$mode delphi}
interface
type
TEnumerator<T> = class
end;
TList<T> = class
protected
function DoGetEnumerator: TEnumerator<T>;
public
type
TEnumerator = class(TObject);
end;
implementation
function TList<T>.DoGetEnumerator: TEnumerator<T>; // Error: Identifier not found "TEnumerator$1"
begin
end;
end.
Mantis conversion info:
- Mantis ID: 26482
- Build: 28152
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 28244 (#856ae9d3)