-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Revert the PRs that made DBNull.Value and NullString.Value treated as $null
#11648
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
Conversation
…re turned on by default
|
Revert the changes in |
| /// Used to compare two objects for equality converting the second to the type of the first, if required. | ||
| /// </summary> | ||
| /// <param name="first">First object.</param> | ||
| /// <param name="second">Object to compare first to.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daxian-dbw, your last commit had 1 failures in PowerShell-CI-static-analysis
Verify Markdown Links.Verify links in /home/vsts/work/1/s/CHANGELOG/6.0.md.https://msdn.microsoft.com/powershell/reference/6/about/about_jobs should work
Failed to complete request to "https://msdn.microsoft.com/powershell/reference/6/about/about_jobs". Response status code does not indicate success: 404 (Not Found).
at <ScriptBlock>, /home/vsts/work/1/s/test/common/markdown/markdown-link.tests.ps1: line 119
119: throw "Failed to complete request to `"$url`". $($_.Exception.Message)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be addressed by #11653
|
@adityapatwardhan Can you please merge this PR? Thanks! |
|
🎉 Handy links: |
PR Summary
Revert the PRs that made
DBNull.ValueandNullString.Valuetreated as$null:Also update code for Coalescing and Null-conditional operators to use 'IsNull' instead.
This is cherry-picked from the
v7.0.0-rc.2tagged branch. The reversion was did originally in #11584 targeting thev7.0.0-rc.2release branch.Note: there are nice syntax/formatting changes made in the original PRs that I wish we could keep, but making extra changes to keep those in this PR will complicate the reversion and may result in mistakes. So I just revert all changes from those 2 PRs.
PR Context
There has been concerns about the inconsistencies the original changes brought to the language.
See #11604 for the discussion going on.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.