Skip to content

Support IEnumerable as benchmark argument #1228

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 2 commits into from
Aug 20, 2019
Merged

Conversation

adamsitnik
Copy link
Member

This is a fix for bug reported by @stephentoub in dotnet/corefx#40377

@adamsitnik adamsitnik added this to the v0.11.6 milestone Aug 20, 2019
@adamsitnik adamsitnik merged commit ea0468f into master Aug 20, 2019
@adamsitnik adamsitnik deleted the ienumerableArgument branch August 20, 2019 16:22
mawosoft added a commit to mawosoft/BenchmarkDotNet that referenced this pull request Jul 17, 2022
SmartParameter codegen must use the target type for casting, not the type of the source value.
Basically, this is a follow up to PR dotnet#1228 (1678a49), which fixed this problem for SmartArgument.
Fixes dotnet#2011.
adamsitnik pushed a commit that referenced this pull request Jul 21, 2022
* Bugfix SmartParameter source code generation

SmartParameter codegen must use the target type for casting, not the type of the source value.
Basically, this is a follow up to PR #1228 (1678a49), which fixed this problem for SmartArgument.
Fixes #2011.

* Tests added.

* Applying code review suggestions; code clean-up.
PR fixes the following issues: fixes #2011, fixes #1812, fixes #1177.
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.

1 participant