This commit is contained in:
Бондарев Иван 2019-05-01 21:50:12 +02:00
parent 4e4861ac6f
commit aa04af92a4

View file

@ -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;
}