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

added int vs float diff for function overloads #1036

Merged
merged 1 commit into from Dec 30, 2021

Conversation

CreepGin
Copy link
Contributor

#1035

First time contributing here. It felt appropriate to follow and reuse the existing Enum resolution/overloading code and tests.

Also, I added an extra check in the existing Enum resolution code paramType.GetEnumUnderlyingType() == typeof(int) because Enum.IsDefined would throw if paramType.GetEnumUnderlyingType() is not an int (as in the case of an overloaded function with an uint enum param).

@lahma lahma merged commit ea1d399 into sebastienros:main Dec 30, 2021
@lahma
Copy link
Collaborator

lahma commented Dec 30, 2021

Thank you!

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.

None yet

2 participants