bug fix #2367
This commit is contained in:
parent
ce6895d73a
commit
99b6e90612
|
|
@ -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];
|
||||
|
|
|
|||
BIN
TestSuite/CompilationSamples/lib1.dll
Normal file
BIN
TestSuite/CompilationSamples/lib1.dll
Normal file
Binary file not shown.
8
TestSuite/CompilationSamples/use_lib1.pas
Normal file
8
TestSuite/CompilationSamples/use_lib1.pas
Normal 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
BIN
TestSuite/lib1.dll
Normal file
Binary file not shown.
Loading…
Reference in a new issue