Skip to content

Commit

Permalink
Replaced returning null with throwing a BindingException
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-wojciechowski committed Oct 30, 2023
1 parent 99d127e commit 4d40157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgen/TypeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public string FormatType (Type? usedIn, string @namespace, string name)
public string FormatTypeUsedIn (string? usedInNamespace, Type? type, bool protocolized = false)
{
if (type is null)
return "null";
throw new BindingException (1065, true );
if (type == System_Void)
return "void";
if (type == System_SByte)
Expand Down

0 comments on commit 4d40157

Please sign in to comment.