This commit is contained in:
Бондарев Иван 2019-10-13 20:20:02 +02:00
parent 134c984e29
commit e933bdef07

View file

@ -740,7 +740,10 @@ namespace PascalABCCompiler.PCU
if (template_types.Length > 0)
{
if (!pure_template)
t = t.MakeGenericType(template_types);
{
if (t.IsGenericTypeDefinition)
t = t.MakeGenericType(template_types);
}
else
{
ts.name = type_name.Remove(0, type_name.LastIndexOf('.') + 1);