Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] Expanding a marshaller error message #88726

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

jandupej
Copy link
Member

Addresses #46926

@@ -2504,7 +2504,11 @@ emit_managed_wrapper_ilgen (MonoMethodBuilder *mb, MonoMethodSignature *invoke_s

if (!sig->hasthis && sig->param_count != invoke_sig->param_count) {
/* Closed delegate */
g_assert (sig->param_count == invoke_sig->param_count + 1);
if (sig->param_count != invoke_sig->param_count + 1) {
g_warning ("Closed delegate has incorrect number of arguments: %s.", mono_method_full_name (method, TRUE));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a g_error ().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants