-
Notifications
You must be signed in to change notification settings - Fork 585
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
Fix #2423: Coverlet: don't use implicit yield #2424
Conversation
fixes #2423 Do we know why the tests passed? /cc @SteveGilham |
With the current tip (commit cd7d749) the code generated for the function of interest, |
Maybe a compiler bug in the new feature /cc @dsyme |
Bumping the .net SDK version to 3.0.100 in |
@SteveGilham As the CI always builds in Release mode, shouldn't the test still fail in CI, before this PR? |
That the tests pass is still a mystery to me. |
Not sure if related, but reverting the |
Which compiler is being used here? If an old compiler is being used, then I assume it's pouring out warnings about ignored values, and then release mode is removing them. |
Ok, I took a look at why this could happen. It seems to be a VERY unfortunate combination of events. Here is what I found:
|
This would be by design. Since tooling is always built and tested against the compiler that it ships with, that's what is always used. There's no way to use an older compiler by setting |
@cartermp Ok not opening an issue then, I still think it is worth keeping an eye open to see if others fall into the same trap. Thanks for the fast response. |
Use explicit yield to construct the MSBuild param list to make sure that they don't get ignored by an older language version.