This commit is contained in:
Бондарев Иван 2018-11-04 14:24:07 +01:00
parent 466ac552d8
commit e84bfaff55

View file

@ -68,6 +68,8 @@ namespace PascalABCCompiler
{
helper.AddVariable(vdn);
CheckType(vdn.type, vdn.inital_value, vdn.loc);
if (vdn.inital_value != null)
VisitExpression(vdn.inital_value);
}
}
}
@ -246,6 +248,8 @@ namespace PascalABCCompiler
foreach (local_variable lv in var_list)
{
CheckType(lv.type, lv.inital_value, lv.loc);
if (lv.inital_value != null)
VisitExpression(lv.inital_value);
}
}