Skip to content

method overloading fix for enum argument #176

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

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

den-run-ai
Copy link
Contributor

No description provided.

TypeCode argtypecode = Type.GetTypeCode(pi[n].ParameterType);
Type typearg = Type.GetType("System." + argtypecode.ToString());
if (typearg == clrtype) {
typematch = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Would comparing the type code of the parameter type and the clrtype be more appropriate here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tonyroberts done! thanks for pointing out cleaner solution. I also added this "regression" test.

tonyroberts added a commit that referenced this pull request Mar 17, 2016
method overloading fix for enum argument
@tonyroberts tonyroberts merged commit b147b16 into pythonnet:develop Mar 17, 2016
@tonyroberts
Copy link
Contributor

@denfromufa great, thanks.

@stonebig
Copy link
Contributor

a "dev2" release this week-end ?

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

Successfully merging this pull request may close these issues.

3 participants