From e933bdef07ba39aca6c43fdf9554f364e2a2170f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sun, 13 Oct 2019 20:20:02 +0200 Subject: [PATCH] bug fix #2123 --- Compiler/PCU/PCUReader.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Compiler/PCU/PCUReader.cs b/Compiler/PCU/PCUReader.cs index 474a8dccb..b5dae0f75 100644 --- a/Compiler/PCU/PCUReader.cs +++ b/Compiler/PCU/PCUReader.cs @@ -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);