Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3431,7 +3431,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))
ErrorHelper.Show (new BindingException (1118, false, mi));
exceptions.Add (ErrorHelper.CreateError (1118, mi));

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