File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/Generator/Generators/C Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -369,12 +369,15 @@ public override bool VisitMethodDecl(Method method)
369
369
370
370
if ( @class . IsRefType )
371
371
{
372
- if ( method . IsConstructor && ! @class . IsAbstract )
372
+ if ( method . IsConstructor )
373
373
{
374
- var @params = GenerateFunctionParamsMarshal ( method . Parameters , method ) ;
375
- Write ( $ "{ Helpers . InstanceIdentifier } = new ::{ method . Namespace . QualifiedOriginalName } (") ;
376
- GenerateFunctionParams ( @params ) ;
377
- WriteLine ( ");" ) ;
374
+ if ( ! @class . IsAbstract )
375
+ {
376
+ var @params = GenerateFunctionParamsMarshal ( method . Parameters , method ) ;
377
+ Write ( $ "{ Helpers . InstanceIdentifier } = new ::{ method . Namespace . QualifiedOriginalName } (") ;
378
+ GenerateFunctionParams ( @params ) ;
379
+ WriteLine ( ");" ) ;
380
+ }
378
381
}
379
382
else
380
383
{
You can’t perform that action at this time.
0 commit comments