From aa04af92a41da751f5ef98e5d9bd483f7321b656 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: Wed, 1 May 2019 21:50:12 +0200 Subject: [PATCH] fix #1924 --- TreeConverter/TreeRealization/generics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TreeConverter/TreeRealization/generics.cs b/TreeConverter/TreeRealization/generics.cs index 6f75a78a4..3f0148626 100644 --- a/TreeConverter/TreeRealization/generics.cs +++ b/TreeConverter/TreeRealization/generics.cs @@ -801,7 +801,7 @@ namespace PascalABCCompiler.TreeRealization if (DeduceInstanceTypes(last_params_type, (fact[i].type as delegated_methods).empty_param_method.type, deduced, nils)) continue; } - else + else if (alone) throw new SimpleSemanticError(loc, "GENERIC_FUNCTION_{0}_CAN_NOT_BE_CALLED_WITH_THESE_PARAMETERS", func.name); return null; }