Generics fatal error for local var in method.
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
// Generics fatal error for local var in method.
{$mode delphi}
type
TA<T> = class
private
type
TR = record
A: T;
end;
end;
TB<T> = class(TA<T>)
public
procedure Foo;
end;
procedure TB<T>.Foo;
var
LR: TR; // This line causes an error "Fatal: Compilation aborted"
begin
end;
Mantis conversion info:
- Mantis ID: 24463
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 27861 (#639a59df)