This commit is contained in:
Бондарев Иван 2016-07-09 14:04:00 +02:00
parent d635ad0d51
commit e3bd0612d8

View file

@ -1437,9 +1437,13 @@ namespace PascalABCCompiler.NETGenerator
{
if (icmn.is_constructor)
{
ConstructorInfo cnstr = helper.GetConstructor(icmn).cnstr;
ConstructorInfo ci = TypeBuilder.GetConstructor(t, cnstr);
helper.AddConstructor(value.used_members[dn] as IFunctionNode, ci);
MethInfo mi = helper.GetConstructor(icmn);
if (mi != null)
{
ConstructorInfo cnstr = mi.cnstr;
ConstructorInfo ci = TypeBuilder.GetConstructor(t, cnstr);
helper.AddConstructor(value.used_members[dn] as IFunctionNode, ci);
}
continue;
}
else