fix #3008
This commit is contained in:
parent
564ece3614
commit
acc6458a82
BIN
TestSuite/l2.dll
Normal file
BIN
TestSuite/l2.dll
Normal file
Binary file not shown.
6
TestSuite/overloads11.pas
Normal file
6
TestSuite/overloads11.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{$reference l2.dll}
|
||||||
|
|
||||||
|
begin
|
||||||
|
l2.t2.m1;
|
||||||
|
assert(l2.t2.i = 1);
|
||||||
|
end.
|
||||||
|
|
@ -2233,7 +2233,13 @@ namespace PascalABCCompiler.TreeConverter
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
set_of_possible_functions.Add(fn);
|
else if ((func = find_eq_method_in_list(fn, set_of_possible_functions)) != null)
|
||||||
|
{
|
||||||
|
if (!(fn is compiled_function_node cfn && func is compiled_function_node cfn2 && (cfn.polymorphic_state == polymorphic_state.ps_static || cfn2.polymorphic_state == polymorphic_state.ps_static)))
|
||||||
|
set_of_possible_functions.Add(fn);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
set_of_possible_functions.Add(fn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (parameters.Count > fn.parameters.Count)
|
if (parameters.Count > fn.parameters.Count)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue