Debugger can not work with calling a generic method into another one from another unit
Original Reporter info from Mantis: okobapatino @OkobaPatino
-
Reporter name: OkobaPatino
Original Reporter info from Mantis: okobapatino @OkobaPatino
- Reporter name: OkobaPatino
Description:
If I call Test1 in the Test2 function, the debugger can not debug lines after the call, and any breakpoints will be invalid. If I move the code of Test1 to Unit2 or make Test1 non-generic, everything will work fine.
Steps to reproduce:
unit Unit1;
{$mode delphi}
interface
function Test1<T>: integer;
implementation
function Test1<T>: integer;
begin
Result := 1;
end;
end.
unit Unit2;
{$mode delphi}
interface
uses
Unit1;
function Test2<T>: integer;
implementation
function Test2<T>: integer;
begin
Result := Test1<integer>;
Result += 1; //Does not work
WriteLn(Result); //Does not work
end;
end.
program project1;
{$mode delphi}
uses
Unit2;
begin
Test2<integer>;
end.
Additional information:
Attached the project for test.
Mantis conversion info:
- Mantis ID: 38200
- Version: 2.1 (SVN)