This commit is contained in:
parent
8a9a56f989
commit
826463a9e0
|
|
@ -763,7 +763,7 @@ namespace PascalABCCompiler.PCU
|
|||
return t;
|
||||
template_types[i] = tt;
|
||||
}
|
||||
if (template_types.Length > 0)
|
||||
if (template_types.Length > 0 && t.IsGenericTypeDefinition)
|
||||
return t.MakeGenericType(template_types);
|
||||
return t;
|
||||
}
|
||||
|
|
|
|||
5
TestSuite/units/u_generics12.pas
Normal file
5
TestSuite/units/u_generics12.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
unit u_generics12;
|
||||
|
||||
function f1: sequence of array of (integer, real) := Seq(|(1,2.3)|,|(3,4.3)|);
|
||||
|
||||
end.
|
||||
5
TestSuite/usesunits/use_generics12.pas
Normal file
5
TestSuite/usesunits/use_generics12.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
uses u_generics12;
|
||||
|
||||
begin
|
||||
assert(f1.ToArray[1][0].Item1 = 3);
|
||||
end.
|
||||
Loading…
Reference in a new issue