fix incorrect condition (#3369)

This commit is contained in:
samuraiGH 2026-01-03 21:06:42 +03:00 committed by GitHub
parent 52c9e7182b
commit 43f02326f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6653,8 +6653,7 @@ namespace PascalABCCompiler.NETGenerator
{
if (!(value.function_code is SemanticTree.IRuntimeManagedMethodBody))
{
//ssyy!!! добавил условие для интерфейсов
if (value.function_code != null)
if (value.function_code != null && !value.common_comprehensive_type.IsInterface)
{
il = methb.GetILGenerator();
ConvertLocalVariables(value.var_definition_nodes);