Generator: do not try to init bases in the subclass ctor
This commit is contained in:
Родитель
815a07e155
Коммит
db12e4ecc4
|
@ -519,19 +519,7 @@ private bool IsByVal (CppType t)
|
|||
#line hidden
|
||||
|
||||
#line 96 "/Users/alex/OpenSource/cppinterop/src/generator/Templates/CSharp/CSharpClass.tt"
|
||||
this.Write("\n\t\t\tsubClass.AddBase (impl.TypeInfo);\n\t\t");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 98 "/Users/alex/OpenSource/cppinterop/src/generator/Templates/CSharp/CSharpClass.tt"
|
||||
this.Write(this.ToStringHelper.ToStringWithCulture( initBases ));
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 98 "/Users/alex/OpenSource/cppinterop/src/generator/Templates/CSharp/CSharpClass.tt"
|
||||
this.Write("\n\n");
|
||||
this.Write("\n\t\t\tsubClass.AddBase (impl.TypeInfo);\n\t\t}\n\n");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace <#= Generator.Namespace #> {
|
|||
public <#= wrapper #> (CppTypeInfo subClass)
|
||||
<#= layoutClass #>
|
||||
subClass.AddBase (impl.TypeInfo);
|
||||
<#= initBases #>
|
||||
}
|
||||
|
||||
<# /* Native constructor */ #>
|
||||
public <#= wrapper #> (CppInstancePtr native)
|
||||
|
|
Загрузка…
Ссылка в новой задаче