bug fix #227
This commit is contained in:
parent
d635ad0d51
commit
e3bd0612d8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue