Skip to content

Commit 1f3a50b

Browse files
committed
Fix ShouldGenerateClassNativeField to use NeedsBase instead of HasBase.
1 parent bc22e18 commit 1f3a50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CLI/CLIGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static bool ShouldGenerateClassNativeField(Class @class)
3737
if (@class.IsStatic)
3838
return false;
3939

40-
return @class.IsRefType && (!@class.HasBase || !@class.HasRefBase());
40+
return @class.IsRefType && (!@class.NeedsBase || !@class.HasRefBase());
4141
}
4242

4343
protected override string TypePrinterDelegate(Type type)

0 commit comments

Comments
 (0)