This commit is contained in:
Ivan Bondarev 2023-03-12 11:08:45 +01:00
parent 2883c1241a
commit c5cc20572a
3 changed files with 6 additions and 1 deletions

5
TestSuite/generics67.pas Normal file
View file

@ -0,0 +1,5 @@
{$reference 'ns.dll'}
begin
var v1:= new ns.c2;
v1.Name&<integer>();
end.

BIN
TestSuite/ns.dll Normal file

Binary file not shown.

View file

@ -5219,7 +5219,7 @@ namespace PascalABCCompiler.TreeConverter
foreach (SymbolInfo func in funcs)
{
function_node f = func.sym_info as function_node;
if (f.is_generic_function)
if (f != null && f.is_generic_function)
{
//Проверяем на совпадение
bool found = false;