瀏覽代碼

+ add test for already fixed #39677

Sven/Sarah Barth 3 年之前
父節點
當前提交
97c16401f7
共有 3 個文件被更改,包括 37 次插入0 次删除
  1. 15 0
      tests/webtbs/tw39677.pp
  2. 11 0
      tests/webtbs/uw39677a.pp
  3. 11 0
      tests/webtbs/uw39677b.pp

+ 15 - 0
tests/webtbs/tw39677.pp

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

+ 11 - 0
tests/webtbs/uw39677a.pp

@@ -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 - 0
tests/webtbs/uw39677b.pp

@@ -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.
+