This commit is contained in:
Ivan Bondarev 2020-12-20 14:20:29 +01:00
parent ce6895d73a
commit 99b6e90612
4 changed files with 10 additions and 0 deletions

View file

@ -744,6 +744,8 @@ namespace PascalABCCompiler.PCU
for (int i = 0; i < template_types.Length; i++)
{
Type tt = FindTypeByHandle(pcu_file.dotnet_names[off].addit[i].offset);
if (tt != null && pcu_file.dotnet_names[pcu_file.dotnet_names[off].addit[i].offset].name.IndexOf(".") == -1)
tt = null;//generic parameter
if (tt == null)
{
tt = t.GetGenericArguments()[i];

Binary file not shown.

View file

@ -0,0 +1,8 @@
{$reference 'lib1.dll'}
procedure x := exit;
begin
T.p(x);
assert(T.i = 1);
end.

BIN
TestSuite/lib1.dll Normal file

Binary file not shown.