fix incorrect condition (#3369)
This commit is contained in:
parent
52c9e7182b
commit
43f02326f2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue