diff --git a/src/bgen/Generator.cs b/src/bgen/Generator.cs index 85db12aec7c2..8c97f6c1fcf5 100644 --- a/src/bgen/Generator.cs +++ b/src/bgen/Generator.cs @@ -4563,8 +4563,8 @@ void GenerateMethod (MemberInformation minfo) argCount++; } if (minfo.Method.GetParameters ().Length != argCount) { - ErrorHelper.Warning (1105, - minfo.selector, argCount, minfo.Method, minfo.Method.GetParameters ().Length); + exceptions.Add (ErrorHelper.CreateWarning (1105, + minfo.selector, argCount, minfo.Method, minfo.Method.GetParameters ().Length)); } }