Skip to content

Commit

Permalink
It's a warning, not an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Jan 15, 2025
1 parent 41e2f0f commit 3c93be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3433,7 +3433,7 @@ void GenerateTypeLowering (MethodInfo mi, bool null_allowed_override, out String
void GenerateArgumentChecks (MethodInfo mi, bool null_allowed_override, PropertyInfo propInfo = null)
{
if (AttributeManager.IsNullable (mi))
exceptions.Add (ErrorHelper.CreateError (1118, mi));
exceptions.Add (ErrorHelper.CreateWarning (1118, mi));

foreach (var pi in mi.GetParameters ()) {
var safe_name = pi.Name.GetSafeParamName ();
Expand Down Expand Up @@ -4190,7 +4190,7 @@ void GenerateProperty (Type type, PropertyInfo pi, List<string> instance_fields_
var ba = GetBindAttribute (setter);
bool null_allowed = AttributeManager.IsNullable (setter);
if (null_allowed)
exceptions.Add (ErrorHelper.CreateError (1118, setter));
exceptions.Add (ErrorHelper.CreateWarning (1118, setter));
null_allowed |= AttributeManager.IsNullable (pi);
var not_implemented_attr = AttributeManager.GetCustomAttribute<NotImplementedAttribute> (setter);
string sel;
Expand Down

0 comments on commit 3c93be0

Please sign in to comment.