Browse Source

Fix ShouldGenerateClassNativeField to use NeedsBase instead of HasBase.

pull/1543/head
Joao Matos 5 years ago committed by João Matos
parent
commit
1f3a50b37b
  1. 2
      src/Generator/Generators/CLI/CLIGenerator.cs

2
src/Generator/Generators/CLI/CLIGenerator.cs

@ -37,7 +37,7 @@ namespace CppSharp.Generators.CLI
if (@class.IsStatic) if (@class.IsStatic)
return false; return false;
return @class.IsRefType && (!@class.HasBase || !@class.HasRefBase()); return @class.IsRefType && (!@class.NeedsBase || !@class.HasRefBase());
} }
protected override string TypePrinterDelegate(Type type) protected override string TypePrinterDelegate(Type type)

Loading…
Cancel
Save