This commit is contained in:
Ivan Bondarev 2024-11-13 21:12:33 +01:00
parent a6564df23c
commit c6505634f4

View file

@ -4989,7 +4989,7 @@ namespace PascalABCCompiler.NETGenerator
if (expr != null && !(expr is IConstantNode) && !(expr is IArrayInitializer))
{
expr.visit(this);
if (expr.type != null)
if (expr.type != null && expr is ICompiledStaticMethodCallNode)
il.Emit(OpCodes.Pop);
}
il = ilgn;