+ add test for already fixed #39677

This commit is contained in:
Sven/Sarah Barth 2022-04-21 22:30:30 +02:00
parent 22a4cc66ec
commit 97c16401f7
3 changed files with 37 additions and 0 deletions

15
tests/webtbs/tw39677.pp Normal file
View File

@ -0,0 +1,15 @@
{ %NORUN }
program tw39677;
{$mode Delphi}
uses uw39677b, uw39677a;
var
S: Rawbytestring;
I: Integer;
begin
I := Test(S);
end.

11
tests/webtbs/uw39677a.pp Normal file
View File

@ -0,0 +1,11 @@
unit uw39677a;
{$mode Delphi}
interface
function Test(const A: Rawbytestring): Integer; overload;
implementation
function Test(const A: Rawbytestring): Integer;
begin
Writeln('a');
end;
end.

11
tests/webtbs/uw39677b.pp Normal file
View File

@ -0,0 +1,11 @@
unit uw39677b;
{$mode Delphi}
interface
function Test<T>(const A: TArray<T>): Integer; overload;
implementation
function Test<T>(const A: TArray<T>): Integer;
begin
Writeln('b');
end;
end.